Wednesday, November 22, 2006

Add a second Gmail Inbox with Greasemonkey

Gmail user Tyler Hall, started forwarding all his work email to his personal Gmail account and wanted an easy way to view his work inbox and sent mail. So he whipped up a useful Greasemonkey user script called Work Buttons to do just that.

Basically the script adds a link to your second addresses' "inbox" and sent mail in the upper bar of the Gmail interface. When clicked, you can see a search of all messages to and from the specified alternate address. To get this working yourself you have to download the script, and add your second address and label. I set it up for Lifehacker's tips email and my personal address and it worked like a charm. The Work Buttons user script is a free download which requires Firefox and the Greasemonkey extension to run and a little of JavaScript.

The goal was to add two new buttons to the top of my Gmail inbox. One to view my Sitening inbox and another to view my outbox. I won’t go into all the gory details of how I accomplished this (you can view the source if you’d like), but I will give a high level overview:
- Create two buttons and insert them into the HTML where appropriate
- Attach a click event to each one that
- Fills in the Gmail search box
- “Click” the search button

It worked great. Here are a few screenshots showing my new inbox in action. >>Read Full Story

Labels: , , ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home