Skip to content

Instantly share code, notes, and snippets.

@rustamli
Last active December 29, 2015 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rustamli/7689150 to your computer and use it in GitHub Desktop.
Save rustamli/7689150 to your computer and use it in GitHub Desktop.
Add to delicious for backtick.io
(function(){function f(i){if(i.origin!==e+""+n&&i.origin!==t+""+n){return}if(i.data==="destroy_bookmarklet"){var s=document.getElementById(r);if(s){document.body.removeChild(s);s=null}}}var e="http://",t="https://",n="delicious.com",r="DELI_bookmarklet_iframe",i=document.getElementById(r);if(i){return}var s=e+""+n+"/save?",o=document.createElement("iframe");o.id=r;o.src=s+"url="+encodeURIComponent(window.location.href)+"&title="+encodeURIComponent(document.title)+"&note="+encodeURIComponent(""+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text))+"&v=1.1";o.style.position="fixed";o.style.top="0";o.style.left="0";o.style.height="100%25";o.style.width="100%25";o.style.zIndex="16777270";o.style.border="none";o.style.visibility="hidden";o.onload=function(){this.style.visibility="visible"};document.body.appendChild(o);var u=window.addEventListener?"addEventListener":"attachEvent";var a=u=="attachEvent"?"onmessage":"message";window[u](a,f,false)})()
{
"name": "Add To Delicious",
"description": "Add page to Delicious",
"icon": "http://www.bram.us/wordpress/wp-content/uploads/2006/10/delicious.gif",
"link": "https://delicious.com/trustamli"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment