Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking for a bookmarklet that will open Gmail for App Domains with the current URL pasted in.

I used to use GmailThis!, but it stopped working recently. Any ideas on a) how to fix it or b) finding a working one?

share|improve this question

migrated from superuser.com Nov 2 '10 at 10:08

This question came from our site for computer enthusiasts and power users.

I looked at the code being used to do this and tweaked it a little. I have not tested it thoroughly but here goes:

  1. Open you favorite text editor.
  2. Copy and Paste the code below.
  3. Replace YOURDOMAINNAME.COM with your domain name. You don't need to make it uppercase. I did it so it was easier to find.

  4. Save the file as "something.html"

  5. Open it in Firefox or your favorite browser.
  6. Drag and drop the "GmailThis!" link to your bookmarks as described in the blog.


<a href="javascript:popw='';Q='';x=document;y=window;if(x.selection) {Q=x.selection.createRange().text;} else if (y.getSelection) {Q=y.getSelection();} else if (x.getSelection) {Q=x.getSelection();}popw = y.open('https://mail.google.com/a/YOURDOMAINNAME.COM/?view=cm&fs=1&tf=1&to=&su=' + escape(document.title) + '&body=' + escape(Q) + escape('\n') + escape(location.href) + '&zx=RANDOMCRAP&shva=1&disablechatbrowsercheck=1&ui=1','gmailForm','scrollbars=yes,width=680,height=510,top=175,left=75,status=no,resizable=yes');if (!document.all) T = setTimeout('popw.focus()',50);void(0);">GmailThis!</a>
share|improve this answer
Nope, did not work. It pops up a window with GMail email listing (not the compose window), but it says: You are currently viewing blah.com Mail in basic HTML. – AngryHacker Nov 1 '10 at 22:15
Can you send me your domain name so I can change the above code to fit your needs? Also, I assume you are signed into your google apps account. – Sahil Nov 1 '10 at 22:25
@sahil. The domain is vbrad.com – AngryHacker Nov 2 '10 at 2:19
@sahil - yes, I am signed in. – AngryHacker Nov 2 '10 at 2:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.