Last active
November 4, 2022 19:14
-
-
Save jaymcgavren/c5f6cf1bf1d6029f75c44125b4c3d282 to your computer and use it in GitHub Desktop.
This bookmarklet copies the selected text and current URL to the clipboard. Create a new bookmark and set the URL to the content below. The setTimeout allows it to be invoked from the Chrome "Open Location" bar.
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:setTimeout(async()=>await navigator.clipboard.writeText('"'+window.getSelection().toString()+'"\n'+location), 50); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment