Last active
June 27, 2024 16:04
-
-
Save chaichontat/278ec0771c74b3302abe81d3b7837735 to your computer and use it in GitHub Desktop.
Extract conversation from Anthropic console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| console.log( | |
| JSON.stringify( | |
| Array.from(document.querySelectorAll('div[data-testid="editor"]')).reduce( | |
| (acc, container) => { | |
| acc[container.parentNode.getAttribute("data-testid")] = container.innerText; | |
| return acc; | |
| }, | |
| {} | |
| ), | |
| null, | |
| 2 | |
| ) | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment