Skip to content

Instantly share code, notes, and snippets.

@Nitrousoxide
Last active May 21, 2024 15:41
Show Gist options
  • Save Nitrousoxide/324bb9890883c8425a44401c738f63c2 to your computer and use it in GitHub Desktop.
Save Nitrousoxide/324bb9890883c8425a44401c738f63c2 to your computer and use it in GitHub Desktop.
/*
Enter this as the "url" for the bookmark you are trying to add.
It will execute the javascript and transform the url of the twitter post to the corresponding
threadreader app's page.
You will likely need to remove this comment block as many browsers do not properly exclude it from execution.
Just past in everything starting with "javascript"
*/
javascript:(function() {
var url = window.location.href;
var tweetId = url.split('/status/')[1].split('?')[0];
window.location.href = "https://threadreaderapp.com/thread/" + tweetId;
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment