Created
April 25, 2022 12:30
-
-
Save mimonelu/0880fb5a67f53e952921d281e7a37ee7 to your computer and use it in GitHub Desktop.
Text Fragment Bookmarklet
This file contains 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: (() => { const text = getSelection() + ''; if (text !== '') prompt('Text Fragment', `${location.href}#:~:text=${encodeURIComponent(text.trim())}`); else alert('テキストが選択されていません。'); })(); void 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment