Last active
January 29, 2024 21:16
-
-
Save tallpeak/c931d4e8d50ce817ea81a47c895235c1 to your computer and use it in GitHub Desktop.
paste into Javascript console when you want dynamically-generated HTML source of the page (if view source shows very little)
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
addEventListener("focus", (event) => | |
navigator.clipboard.writeText(document.body.innerHTML) | |
.then(()=>console.log("string copied to clipboard")) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment