Safari: How-to add a “Tweet this”-shortcut

I wanted to have a shortcut in Safari, which allows me to instantly post the Webpage I am currently browsing to Twitter.

Thanks to the service TwitThis.com and the JavaScript-Code they use, I was able to create just what I desired:

Twit This Safari Shortcut

Short “How-to” video

Required JavaScript-Code for the Safari-shortcut

javascript:window.open("http://twitthis.com/twit?url="+encodeURIComponent(location.href)+"&title="+((document.title) ? encodeURIComponent(document.title.replace(/^\s*|\s*$/g,'')) : ""), "TwitThisPop", "width=600, height=600, location, status, scrollbars, resizable");

 

References used

TwitThis.com Tools webpage

 

One thought on “Safari: How-to add a “Tweet this”-shortcut

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>