Skip to content

Instantly share code, notes, and snippets.

@datfaf
Forked from pisi/gist:949867
Created June 17, 2011 15:17
Show Gist options
  • Save datfaf/1031627 to your computer and use it in GitHub Desktop.
Save datfaf/1031627 to your computer and use it in GitHub Desktop.
Delicious bookmarklet
javascript:(function(){f='http://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=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment