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 send web page links in Gmail, check out the Gmail This bookmarklet. A bookmarklet is a snippet of JavaScript code that runs in a browser. Gmail This makes it easy to email a website link. 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 press Ctrl+Shift+B to open the Bookmark Manager.

  2. In the upper-right corner, select the three-dot icon.

    Chrome Bookmark Manager with the menu highlighted
  3. From the menu, choose Add new bookmark.

    Chrome menu with the Add new bookmark command highlighted
  4. In the Add bookmark dialog box, type a name for the bookmarklet.

    Add Bookmark window with the Name field highlighted
  5. In the URL text box, 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.

    Add Bookmark window in Chrome with the URL field highlighted
  6. Select Save.

    Add Bookmark menu in Chrome with the Save button highlighted
  7. The bookmarklet appears in the bookmarks bar, alongside your other bookmarks.

    Chrome with a Gmail This bookmarklet highlighted

How to Use Gmail This

Use the following steps when you're ready to send a URL in a Gmail email message.

  1. Log in to Gmail.

  2. In the web browser, go to the URL you want to email.

  3. Select the Gmail This bookmarklet.

    Chrome with a bookmarklet highlighted
  4. A new Gmail message opens. By default, the page 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.

    A Gmail message open in Chrome with the Send button highlighted