How to Add the Gmail This Bookmarklet to Chrome

Quickly email any URL with this JavaScript code

Close-Up Of Books On Table
Lisa Kehoffer / EyeEm / Getty Images

If you like to send web page links via Gmail, then you'll love the Gmail This bookmarklet. 

A bookmarklet is a snippet of JavaScript code that can run in your browser. There are bookmarklets available to do all sorts of things. Gmail This makes it a lot easier to email a website link, given that the alternative method is to copy the link manually, open Gmail, compose a new message, paste the URL, add the recipient name(s), and choose an appropriate subject line.

Gmail This composes the message automatically, complete with the URL and website title pre-written in the subject line.

How to Install Gmail This in Chrome

Follow these steps to get Gmail This ready to use.

  1. Open Chrome, then open the Bookmark Manager by pressing Ctrl+Shift+O on your keyboard.

    Chrome with Bookmarks function displayed
  2. In the upper-right corner, select the three-dot icon and, from the menu, choose Add new bookmark.

    Gmail with Bookmarks menu displayed
  3. In the Add bookmark dialog box, type a name for the bookmarklet.

    Chrome with Add Bookmarks function displayed
  4. In the "URL" section, paste the code shown here: 

    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();}''+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);})();

    Copy this JavaScript code from JSFiddle if the bookmarklet doesn't work with the code you see above.

  5. Select Save.

    Chrome with new bookmark added to bookmark bar
  6. The bookmarklet appears in your bookmarks bar, alongside your other bookmarks.

How to Use Gmail This

Use the following steps when you're ready to send a URL via Gmail.

  1. Make sure you're logged into Gmail.

  2. In your browser, navigate to the URL you want to email.

    Chrome with Gmail This bookmarklet displayed
  3. Select the bookmarklet.

  4. A new Gmail message opens. By default, the page's title is set as the subject, and the link appears in the message body.

    Chrome with new Gmail message displayed
  5. Add recipient name(s), make any edits you want, then select Send.