Created
March 21, 2026 18:35
-
-
Save krc/3c29b43726cfdedddc03d17da24b98ba to your computer and use it in GitHub Desktop.
Bookmarklet to copy 'fxtwitter' link to clipboard
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: sharedPage=location.href; | |
| if(sharedPage.includes('x.com')){fixSharedPage=sharedPage.replace(/x.com/, "fixupx.com");} | |
| else if(sharedPage.includes('bsky.app')){fixSharedPage=sharedPage.replace(/bsky.app/, "fxbsky.app");} | |
| else if(sharedPage.includes('twitter.com')){fixSharedPage=sharedPage.replace(/twitter.com/, "fxtwitter.com");} | |
| else {fixSharedPage=sharedPage;} | |
| navigator.clipboard.writeText(fixSharedPage);null; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for making this, just leaving this here for anyone else
I named mine "Fix X/BSKY Links"