Skip to content

Instantly share code, notes, and snippets.

@sulco
Created November 1, 2024 12:14
Show Gist options
  • Save sulco/f831459597072b2afccfd731ffa3420b to your computer and use it in GitHub Desktop.
Save sulco/f831459597072b2afccfd731ffa3420b to your computer and use it in GitHub Desktop.
Copy Prompts bookmarklet
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));
})();
@sulco
Copy link
Author

sulco commented Nov 1, 2024

How to use it:

See the video here: https://x.com/sulco/status/1852328549899788542

Enjoy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment