Skip to content

Instantly share code, notes, and snippets.

@voidw0rd
Created August 10, 2012 15:54
Show Gist options
  • Save voidw0rd/3315192 to your computer and use it in GitHub Desktop.
Save voidw0rd/3315192 to your computer and use it in GitHub Desktop.
<a class="bookmarklet" title="Add to delicious"
href="
javascript:(function(){
f='https://www.delicious.com/save?url='
+encodeURIComponent(window.location.href)
+'&title='+encodeURIComponent(document.title)
+'&notes='+encodeURIComponent(''
+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text))
+'&v=6&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv6','location=1,links=0,scrollbars=0,toolbar=0,width=710,height=660'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()">
<img src="/static/img/button_bookmarklet.png" alt="Add to delicious">
</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment