I posted this in my Blog some time ago, but recently found out that the solution with TwitThis doesn’t work anymore… yet even got a bit “suspicious” (as the TwitThis service was starting to get abandoned). In the meantime, Twitter is offering it’s own “Tweet this” popup window.

I made use of this feature now for a shortcut button in the Safari bookmarks bar.

Thanks to the built in shortcut feature in Safari, you may use the keyboard shortcut Command+[Number] to directly fire a bookmark from within the bookmarks bar («Favorites»). In my example it would be Command+5 (the “-> Tweet this” button is at the 5th location in my bookmark Favorites).

Video screencast on how to add a «Tweet this»-bookmark

JavaScript code for the Browser Bookmarklet

Copy-paste this JavaScript code as new bookmark in Safari

javascript:window.open("https://twitter.com/intent/tweet?original_referer=" + encodeURIComponent(location.href) + "&text=" + ((document.title) ? encodeURIComponent(document.title.replace(/^\s*|\s*$/g,"")):"") + "&tw_p=tweetbutton&url=" + encodeURIComponent(location.href), "Post to Twitter", "width=500, height=600, location, status, scrollbars, resizable");

By the way: this solution should also work on other web browsers – such as Firefox or Chrome! (I haven’t tested it though)

Share:
  • 0
  • 0

Questions? Suggestions? Let us know with a comment!

This site uses Akismet to reduce spam. Learn how your comment data is processed.