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
| // script modified and adapted from https://gist.github.com/8bitgentleman/de939b391d5d27ee310a0912b2ccba85 | |
| (() => { | |
| if ( | |
| !location.href.startsWith("https://twitter.com/i/bookmarks") && | |
| !location.href.startsWith("https://x.com/i/bookmarks") | |
| ) { | |
| console.log(location.href); | |
| alert( | |
| "This bookmarklet should only be used on your twitter bookmarks page." | |
| ); |