Skip to content

Instantly share code, notes, and snippets.

@OneNiNE87
Created May 29, 2025 15:43
Show Gist options
  • Save OneNiNE87/047c1e8fc7b1125bfa59c1b18cb29cfb to your computer and use it in GitHub Desktop.
Save OneNiNE87/047c1e8fc7b1125bfa59c1b18cb29cfb to your computer and use it in GitHub Desktop.
Bookmarklet
javascript:(function()%7B const articles = document.querySelectorAll('article%5Bdata-testid%5E="conversation-turn"%5D'); if (!articles.length) %7B alert('No chat content found!'); return; %7D let chatContent = Array.from(articles).map(article => article.innerText).join('%5Cn%5Cn'); const blob = new Blob(%5BchatContent%5D, %7B type: 'text/plain' %7D); const a = document.createElement('a'); a.href = URL.createObjectURL(blob); a.download = 'chat_conversation.txt'; document.body.appendChild(a); a.click(); document.body.removeChild(a); %7D)();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment