Skip to content

Instantly share code, notes, and snippets.

@csu
Created November 28, 2015 09:08
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 csu/12fc76a1e5389d0ed8b5 to your computer and use it in GitHub Desktop.
Save csu/12fc76a1e5389d0ed8b5 to your computer and use it in GitHub Desktop.
var d=document,w=window,e=w.getSelection,k=d.getSelection,x=d.selection,s=(e?e():(k)?k():(x?x.createRange().text:0)),l=d.location,e=encodeURIComponent,p='"'+((e(s))?e(s):e(document.title))+'" '+e(l.href);window.open('http://circular.io/?p='+p);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment