Skip to content

Instantly share code, notes, and snippets.

@krc
Created March 21, 2026 18:35
Show Gist options
  • Select an option

  • Save krc/3c29b43726cfdedddc03d17da24b98ba to your computer and use it in GitHub Desktop.

Select an option

Save krc/3c29b43726cfdedddc03d17da24b98ba to your computer and use it in GitHub Desktop.
Bookmarklet to copy 'fxtwitter' link to clipboard
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;
@Celesian
Copy link
Copy Markdown

Celesian commented Apr 8, 2026

Thank you for making this, just leaving this here for anyone else

I named mine "Fix X/BSKY Links"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment