Gmail Bookmarklet: Mail To

May 14th, 2008 ,

Using Gmail daily, I’ve been wanting quicker access to the “Compose Email” area for a while now. So I concocted a deadly bookmarklet for doing just that. The following mockery of JavaScript will open for you, a new popup window showing only the Compose window. It’s awesome.

Drag this link to your bookmarks toolbar: Gmail To

Works with the new Gmail 2 UI.

  1. Good stuff, Joen, this’ll be very useful. Thanks!

  2. A super-mung-bean idea Joen. It’s great for firing off that quick email without having to have the gmail window active - now, if only one could assign a keyboard shortcut to it.

  3. now, if only one could assign a keyboard shortcut to it.

    Since it’s JavaScript, I would assume that a myriad of both browser extensions (most likely) and even system extensions can fire off the code.

    Possibly this: http://lifehacker.com/software/feature/hack-attack-mouseless-firefox-139495.php or this: http://lifehacker.com/software/keyboard-shortcuts/

    If nothing else, you can right click your Firefox bookmark, and add a “keyword”, for instance “c”. Then your shortcut is alt+d to the location bar, c and then enter. Not what you’re looking for, but close.

  4. ..and if youre using Safari (I assume this works on Windows with a different key command, maybe ctrl?) and its one of your Bookmarks Bar items, it’s just Command+number-from-left.
    So if its the most left hand Bookmarks Bar link item its Command+1 the next over is Command+2, 3, 4 etc etc. Can you all see the Apple? ->  or just Mac users?

  5. Can you all see the Apple? ->  or just Mac users?

    Nope, I’m seeing a weird square. Thanks for the tip, tho.

  6. nice work. this should be pretty damn useful.

  7. Oh thanks for this! This is great!

    Quote Long (subscribed) said May 14th, 2008, 18:58:
  8. Great idea, I didn’t really feel a need for it (people usually write to me! :)) but im trying it out!

    Cheers!

  9. Thanks Joen!

  10. I use

    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&tf=0&to=&su='%20+%20escape(document.title)%20+%20'&body='%20+%20escape(Q)%20+%20escape('n')%20+%20escape(location.href),'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);

    It picks up the current URL and ad it to the body of the mail.

    Quote Bubber (subscribed) said May 15th, 2008, 10:17:
  11. Bubber,

    Thanks for the tip. I’m getting some errors with that, tho, possibly your gode got mangled in transit. Could you post again, as a link?

  12. Hmm as a link - I’ll try. 2nd try!

    Gmail this

    Quote Bubber (subscribed) said May 15th, 2008, 10:52:
  13. Perfect, that works for me. Thanks.

Comment

(required)

(required)

Formatting Your Comment

The following XHTML tags are available for use:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

URLs are automatically converted to hyperlinks.

Textile

Textile is a method that uses simple symbols to quickly write rich text markup. These are the most common:

  • _emphasis_
  • *strong*
  • -deleted text-
  • !imageurl.gif!

Preview: