Skip to content

Instantly share code, notes, and snippets.

@andrewsardone
Created December 17, 2013 02:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewsardone/7999130 to your computer and use it in GitHub Desktop.
Save andrewsardone/7999130 to your computer and use it in GitHub Desktop.
Tweetbot bookmarklet. I'm sure other people have better, more robust ones, but this bookmarklet works for me.
javascript:(function()%7Bwindow.open(location.href.replace(%2Fhttps%3A%5C%2F%5C%2F(mobile.)%3Ftwitter.com%5C%2F%2F%2C%20%22tweetbot%3A%2F%2F%22).replace(%22statuses%22%2C%20%22status%22)%2C%20%22_self%22)%7D)()
// Simple and probably error-prone
window.open(location.href.replace(/https:\/\/(mobile.)?twitter.com\//, "tweetbot://").replace("statuses", "status"), "_self");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment