Greasy Fork is available in English.
轻松导出 ChatGPT 聊天记录,以便进一步分析或分享。
Yeah... when I created this script I have only around 200 chats. Need to improve it to support much more now.
No worries! I got it working with an ugly hack... getting all conversations in the list, then selecting them in batch, and exporting them like that. Something like `let boxes = document.querySelector('.SelectList').querySelectorAll('input[type="checkbox"]'); const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms)); for (let i = batch; (i < batch + size) && (i < boxes.length); i++) { let cb = boxes[i]; (cb.closest('label') ?? cb).click(); await sleep(10); } void await new Promise(requestAnimationFrame);` to toggle the boxes
It works for me, but not if there are too many conversations... At 2k it fails: it downloads all, then my cpu goes up, then .. nothing. Not with Markdown, not with HTML output. It does work with fewer conversations, but I want all... There are no errors in console about the export failing.