claude-export
claude-export copied to clipboard
Browser script to share and export Anthropic Claude chat logs to Markdown, JSON, or as Image (PNG)
To get Markdown, it is reliable to hook the text sent to the clipboard from the Copy button. I implemented this in a simple way. It requires `exportMarkdown` to be...
`blockquote` disappears. Here is a simple implementation. ```javascript // Quotes if (tag === "BLOCKQUOTE") { for (const line of text.trim().split("\n")) { markdown += `> ${line}\n`; } } ```
Nodes other than `li` are enumerated, so `ol` is not numbered correctly. It can be worked around by counting the numbers. ```diff --- a/src/exportMarkdown.js +++ b/src/exportMarkdown.js @@ -43,12 +47,13 @@...
The `div` has been added to the chat body and `firstChild` cannot be retrieved properly. I can get the content by going down one level. ```diff --- a/src/exportMarkdown.js +++ b/src/exportMarkdown.js...
The class of the chat container seems to have changed and `chatContainer` is `null`. ```html ``` It may change again, so I cut it and it works. ```diff --- a/src/util/getContents.js...
make it able to take the exported account conversations.json -( from account > export data) and get all the conv uuid - and then download in bulk ```python import json...
Fixes #6 - [x] fix `TypeError: e is null` - [ ] fix empty content of `_Prompt:_` and `_Claude:_`
I did the following on Firefox: - copy the `md.min.js` script from https://github.com/ryanschiang/claude-export/blob/main/dist/md.min.js using the `Copy raw file` icon - open a Claude 3.5 Sonnet chat (URL is like `https://claude.ai/chat/`)...
the content of artifacts is not shown when downloading. Tested with the markdown script.
Stopped working for me today, with `TypeError: undefined is not an object (evaluating 'o.classList [0].split')` Claude suggested the following instead, which now works for me. ```js // Fixed version of...