ChatGPT Copy as Markdown with MathJax Support

Copy the chatGPT Q&A content as a markdown text, with MathJax Render Support, you can use this together with 'OpenAI-ChatGPT LaTeX Auto Render (with MathJax V2)' that adds support for math render, based on 'chatGPT Markdown' by 赵巍໖.

< ChatGPT Copy as Markdown with MathJax Support 피드백으로 돌아가기

질문/댓글

§
게시: 2022-12-15

支持数学公式的ChatGPT Markdown一键复制.user.js:242

Uncaught TypeError: Cannot read properties of undefined (reading 'nodeName')
at 支持数学公式的ChatGPT Markdown一键复制.user.js:242:43
at Array.forEach ()
at MutationObserver. (支持数学公式的ChatGPT Markdown一键复制.user.js:239:19)


这个错误令我苦恼,如果有任何解决方法的话,请通知我,谢谢

jbji작성자
§
게시: 2022-12-15

Thanks for your feedback!

This is because the case where mutation.addedNodes[0] is undefined was not handled. I've added an if condition in update 0.4.2 that checks whether mutation.addedNodes[0] exists, this should help.

The code snippet related to this problem is a mutation observer that handles 'headlessui-portal-root', which had worked properly but not elegantly due to this bug.

By the way, I'm seeking for a better way to insert the copy button instead of setting a timeout(which could be invalid in some case but not often), please let me know if you have got a better solution!

§
게시: 2023-02-24

确实没有复制按钮,你可以考虑把Upgrade to Plus按钮更换一下

답글 게시

답글을 게시하려면 로그인하세요.