Created
January 18, 2011 15:28
-
-
Save timvisher/784582 to your computer and use it in GitHub Desktop.
Script for popping up a GMail compose window with info about the current page in it.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
url='https://mail.google.com/mail?view=cm&tf=0&to=&su='; | |
if("" != document.getSelection()) { | |
url += encodeURIComponent('[TUMBI]: ' + document.getSelection()) + "&body=" + encodeURIComponent(document.URL); | |
} | |
window.open(url, 'gmailForm', 'scrollbars=yes,width=680,height=510,top=175,left=75,status=no,resizable=yes'); | |
void(0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment