Skip to content

Instantly share code, notes, and snippets.

@hyagni
Created November 30, 2010 11:30
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 hyagni/721556 to your computer and use it in GitHub Desktop.
Save hyagni/721556 to your computer and use it in GitHub Desktop.
Add to delicious bookmark shortcut in keysnail. Bookmarklet like motion.
key.setViewKey(['C-c', 'C-d'], function () {
f='http://www.delicious.com/save?url='+encodeURIComponent(getBrowser().contentDocument.URL)+'&title='+encodeURIComponent(getBrowser().contentDocument.title)+'&v=5&';
a=function(){
if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','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()
}
}, 'delicious Bookmark', true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment