Skip to content

Instantly share code, notes, and snippets.

@mackuba
Last active March 11, 2026 17:51
Show Gist options
  • Select an option

  • Save mackuba/1deae7921d6eda339bec772237ad220b to your computer and use it in GitHub Desktop.

Select an option

Save mackuba/1deae7921d6eda339bec772237ad220b to your computer and use it in GitHub Desktop.
Bookmarklet that opens current bsky.app post in Skythread
// bookmarklet
javascript:(function()%7Blet%20s=%22https://skythread.mackuba.eu/%22;let%20l=location;if(l.host.endsWith(%22bsky.app%22))%7Blet%20u=s+%22?q=%22+encodeURIComponent(l.href);let%20a=document.createElement('a');a.target='_blank';a.href=u;a.click()%7Delse%7Bl.href=s%7D%7D())
// unwrapped code:
(function() {
let s = "https://skythread.mackuba.eu/";
let l = location;
if (l.host.endsWith("bsky.app")) {
let u = s + "?q=" + encodeURIComponent(l.href);
let a = document.createElement('a');
a.target = '_blank';
a.href = u;
a.click();
} else {
l.href = s;
}
}())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment