Last active
May 21, 2024 15:41
-
-
Save Nitrousoxide/324bb9890883c8425a44401c738f63c2 to your computer and use it in GitHub Desktop.
This file contains 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
/* | |
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