Skip to content

Instantly share code, notes, and snippets.

@norio-nomura
Created February 26, 2010 04:18
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 norio-nomura/315394 to your computer and use it in GitHub Desktop.
Save norio-nomura/315394 to your computer and use it in GitHub Desktop.
javascript:var%20d=document,w=window,enc=encodeURIComponent,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),s2=((s.toString()=='')?s:('%22'+enc(s)+'%22%20')),f='echofon:',l=d.location,p=enc(d.title)+'%20'+s2+enc(l.href),u=f+p;try%7Bif(!/%5E(.*%5C.)?tumblrzzz%5B%5E.%5D*$/.test(l.host))throw(0);tstbklt();%7Dcatch(z)%7Ba%20=function()%7Bwindow.location=u;%7D;if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();%7Dvoid(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment