FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Verified Commit dd18eea6 authored by Silas S. Brown's avatar Silas S. Brown
Browse files

JS for saving LLM history

parent 3c0f998e
No related branches found
No related tags found
No related merge requests found
// c.ai LLM history saver - SSB 2024
// Ensure you've scrolled back enough to populate whole history.
// Paste this line into DOM Inspector Console and copy the result.
// Tested in Chrome 131 on GNU/Linux.
r=[];for(c=document.getElementById("chat-messages").firstChild;c;c=c.nextSibling) r.push('"""{'+c.getElementsByTagName("img")[0].alt+"} "+c.getElementsByClassName("prose")[0].innerHTML.replace(/<(p|ol|ul)[^>]*>/g,'<$1>').replace(/<p>([^<]*)<[/]p>$/,'$1').replace('"""',"'''").replace(/"$/,'"\n').replace(/[\\]/g,'&#92;')+'"""'); r.reverse(); r.join(',\n')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment