Skip to content

Instantly share code, notes, and snippets.

@beyondliu
Last active March 29, 2017 03:16
Show Gist options
  • Save beyondliu/165e6a27d183793acc92f30aeae9a888 to your computer and use it in GitHub Desktop.
Save beyondliu/165e6a27d183793acc92f30aeae9a888 to your computer and use it in GitHub Desktop.
javascript:(function(){var a=window,b=document,c=encodeURIComponent;var txt = '';if (window.getSelection){txt=window.getSelection();}else if (document.getSelection){txt=document.getSelection();}else if (document.selection){txt=document.selection.createRange().text;}d=a.open('http://3exps.org/user/scrapbook/scraps/addScrap/?url='+c(b.location)+'&title='+c(b.title)+'&desc='+c(txt),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=500px,width=600px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment