Skip to content

Instantly share code, notes, and snippets.

@ohjho
Created April 13, 2018 03:30
Show Gist options
  • Save ohjho/b35fcb295ec8107e36f144d60034f15b to your computer and use it in GitHub Desktop.
Save ohjho/b35fcb295ec8107e36f144d60034f15b to your computer and use it in GitHub Desktop.
javascript:(function(){popw='';Q='';d=document;w=window;if(d.selection){Q=d.selection.createRange().text;}else if(w.getSelection){Q=w.getSelection();}else if(d.getSelection){Q=d.getSelection();}popw=w.open('http://mail.google.com/mail/s?view=cm&fs=1&tf=1&to=&su='+encodeURIComponent(d.title)+'&body='+encodeURIComponent(Q)+escape('%5Cn%5Cn')+encodeURIComponent(d.location)+'&zx=RANDOMCRAP&shva=1&disablechatbrowsercheck=1&ui=1','gmailForm','scrollbars=yes,width=680,height=575,top=175,left=75,status=no,resizable=yes');if(!d.all)setTimeout(function(){popw.focus();},50);})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment