Skip to content

Instantly share code, notes, and snippets.

@willkidger
Created November 4, 2013 22:31
Show Gist options
  • Save willkidger/7310364 to your computer and use it in GitHub Desktop.
Save willkidger/7310364 to your computer and use it in GitHub Desktop.
Gmail This - Backtick
javascript:popw='';Q='';x=document;y=window;if(x.selection)%20{Q=x.selection.createRange().text;}%20else%20if%20(y.getSelection)%20{Q=y.getSelection();}%20else%20if%20(x.getSelection)%20{Q=x.getSelection();}popw%20=%20y.open('https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=&su='%20+%20escape(document.title)%20+%20'&body='%20+%20escape(Q)%20+%20escape('n')%20+%20escape(location.href)%20+%20'&zx=RANDOMCRAP&shva=1&disablechatbrowsercheck=1&ui=1','gmailForm','scrollbars=yes,width=680,height=510,top=175,left=75,status=no,resizable=yes');if%20(!document.all)%20T%20=%20setTimeout('popw.focus()',50);void(0);
{
"name": "Gmail This",
"description": "Send current link in new Gmail email.",
"icon": "http://cwhitaker.com/lastpass/img/icons/gmail.png",
"link": "http://google.co.uk"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment