Skip to content

Instantly share code, notes, and snippets.

@shawjia
Created June 10, 2012 08:21
Show Gist options
  • Select an option

  • Save shawjia/2904467 to your computer and use it in GitHub Desktop.

Select an option

Save shawjia/2904467 to your computer and use it in GitHub Desktop.
分享到饭否 Bookmarklet 旧版
javascript:var d=document,w=window,f='http://fanfou.com/share',l=d.location,e=encodeURIComponent,p='?u='+e(l.href)+'&t='+e(d.title)+'&d='+e(w.getSelection?w.getSelection().toString():d.getSelection?d.getSelection():d.selection.createRange().text)+'&s=bm';a=function(){if(!w.open(f+'r'+p,'sharer','toolbar=0,status=0,resizable=0,width=600,height=400'))l.href=f+'.new'+p};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else{a()}void(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment