Digg This Bookmarklet for Safari

The simplest way to integrate Digg with Safari (and maybe other browsers (not tested)).

1. simple version

javascript:void(location.href='http://digg.com/submit?phase=2%20&url='+location.href+'&title='+encodeURIComponent(document.title))

2. advanced version that add highlighted text

javascript:(function(){ID=document.getSelection();if(!ID){location.href='http://digg.com/submit?phase=2%20&url='+location.href+'&title='+encodeURIComponent(document.title)}if(ID){z=open().document;z.location.href='http://digg.com/submit?phase=2%20&url='+location.href+'&title='+encodeURIComponent(document.title)+'&bodytext='+encodeURIComponent(document.getSelection())}})()

read more | digg story

No comments:

Related Posts with Thumbnails