將 ChatGPT 和 Grok 網站的聊天記錄導出為普通 Markdown 格式,可於 Typora 中精確打開。
< 腳本Export ChatGPT/Gemini/Grok conversations as Markdown的回應
It also says "Save As PDF" but it saves as markdown...
Output is poorly formatted, too. It adds "bashCollapseWrapRunCopy" at the top of each code block, as if it's reading the HTML from the page and then back-converting it to markdown instead of getting the actual markdown of each message.
I'm hesitant to try this script because it disables the browser's Trusted Types protection and requests GM_xmlhttpRequest permission without using it, creating a significant risk if the script ever receives a malicious update.