Created
November 1, 2024 12:14
-
-
Save sulco/f831459597072b2afccfd731ffa3420b to your computer and use it in GitHub Desktop.
Copy Prompts bookmarklet
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
javascript:(function(){ | |
const result = [...document.querySelectorAll('.text-bolt-elements-textSecondary + div > div > ._MarkdownContent_1mdbx_1')] | |
.map(node => node.innerText) | |
.reduce((acc, curr) => acc + curr + '\n\n', ''); | |
navigator.clipboard.writeText(result) | |
.then(() => alert('Content copied to clipboard!')) | |
.catch(err => alert('Failed to copy: ' + err)); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to use it:
See the video here: https://x.com/sulco/status/1852328549899788542
Enjoy!