Skip to content

Instantly share code, notes, and snippets.

@fvdm
Created October 20, 2012 23:58
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 fvdm/3925292 to your computer and use it in GitHub Desktop.
Save fvdm/3925292 to your computer and use it in GitHub Desktop.
Safari bookmarklet to open Twitter user or tweet in Tweetbot app, may work in other browsers too.
javascript:window.location.href.replace(/twitter\.com\/(\!#\/)?([\w-]+)(\/status\/(\d+))?/,function(s,h,u,s,p){if(p){window.location='tweetbot:///status/'+p}else{window.location='tweetbot:///user_profile/'+u}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment