Skip to content

Instantly share code, notes, and snippets.

@mrmurphy
Forked from JoelBesada/README.md
Last active December 28, 2015 02:09
Show Gist options
  • Save mrmurphy/7425447 to your computer and use it in GitHub Desktop.
Save mrmurphy/7425447 to your computer and use it in GitHub Desktop.
A Delicious option for Backtick chrome extension
javascript:(function(e,t){var n=e.document;setTimeout(function(){function a(e){if(e.data==="destroy_bookmarklet"){var r=n.getElementById(t);if(r){n.body.removeChild(r);r=null}}}var t="DELI_bookmarklet_iframe",r=n.getElementById(t);if(r){return}var i="https://delicious.com/save?source=bookmarklet&",s=n.createElement("iframe");s.id=t;s.src=i+"url="+encodeURIComponent(e.location.href)+"&title="+encodeURIComponent(n.title)+"&note="+encodeURIComponent(""+(e.getSelection?e.getSelection():n.getSelection?n.getSelection():n.selection.createRange().text))+"&v=1.1";s.style.position="fixed";s.style.top="0";s.style.left="0";s.style.height="100%25";s.style.width="100%25";s.style.zIndex="16777270";s.style.border="none";s.style.visibility="hidden";s.onload=function(){this.style.visibility="visible"};n.body.appendChild(s);var o=e.addEventListener?"addEventListener":"attachEvent";var u=o=="attachEvent"?"onmessage":"message";e[o](u,a,false)},1)})(window)
{
"name": "Add to Delicious",
"description": "Calls the Delicious bookmarklet script.",
"icon": "http://www.blogcdn.com/www.tuaw.com/media/2006/08/delicious_logo2.png",
"link": "https://delicious.com/tools"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment