Skip to content

Instantly share code, notes, and snippets.

@lmarburger
Created January 8, 2009 17:48
Show Gist options
  • Save lmarburger/44815 to your computer and use it in GitHub Desktop.
Save lmarburger/44815 to your computer and use it in GitHub Desktop.
/*
Bookmarklet to load the current Twitter user page in CoTweet.
The condensed bookmarklet code expands to:
javascript:(function() {
var m = /https?:\/\/twitter\.com\/(\w+)/.exec(window.location.href);
if (m && m[1] != "home") {
window.location.href="https://cotweet.com/twitter/" + m[1];
}
})();
*/
javascript:(function()%7Bvar%20m=/https?:\/\/twitter\.com\/(\w+)/.exec(window.location.href);if(m&&m[1]!="home")%7Bwindow.location.href="https://cotweet.com/twitter/"+m[1];%7D%7D)();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment