Last active
November 11, 2024 20:37
-
-
Save eightBitter/c5ae27f2bc11d31c580deba85131f060 to your computer and use it in GitHub Desktop.
This javascript bookmarklet creates a Text Fragment URL string and copies to clipboard, allowing one to share a link to highlighted text on a page.
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() { | |
| navigator.clipboard.writeText(document.URL + "#:~:text=" + window.getSelection().toString()); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment