Skip to content

Instantly share code, notes, and snippets.

@indolering
Created February 11, 2009 17:46
Show Gist options
  • Save indolering/62136 to your computer and use it in GitHub Desktop.
Save indolering/62136 to your computer and use it in GitHub Desktop.
CmdUtils.makeBookmarkletCommand({
name: "faviki",
url: "javascript:(function(){var%20w=window,d=document,e=encodeURIComponent,url=location.href,fff=d.getElementsByTagName('body')[0],wra=d.getElementById('wrapper_faviki');if(url!=''&&url!='about:blank'){if(!fff){p=w.open('http://www.faviki.com/ajax/edit_entry.php?url='+e(url)+';;;'+e(d.title)+';;;'+'&type=popup','bkmk_popup','left='+((w.screenX||w.screenLeft)+10)+',top='+((w.screenY||w.screenTop)+10)+',height=320px,width=443px,resizable=0,alwaysRaised=1');w.setTimeout(function(){p.focus()},300);}else{if(wra){wra.style.display='block'}else{var%20s=d.createElement('script');s.id='faviki_script';s.src='http://www.faviki.com/js/include/include.php';d.getElementsByTagName('body')[0].appendChild(s);}}}}());"
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment