Gmail, Firefox and Greasemonkey

I’ve heard of Greasemonkey users scripts a while ago but never gave it much tought.
But today I found a couple scripts I really like so I decided to give it a try.

First script is called Gmail Macros. What is does is it provides a sort of Quicksilver-like GUI “layer” for the keyboard shortcuts it provides. So now I can use “g” + “i” for “Goto Inbox” or “g”+”_first_letter_of_any_label_” to go to that lable. Really nice :) I’ve used Quicksilver for a while on my iBook, but it didn’t agree with my workflow, but I think I can get used to this one in Gmail.

QuciksilverGmail

The second script is called Gmail Label Colors. This one is very usefull if you have a lot of labels (like me) and get a lot of mail directly to Inbox (personaly I do not archive the most important mails). What this does is it lets you to specify a color for any label and it then makes a nice coloured label in the listing of mails. The picture bellow shows how it does it.

Gmail Label Colors (

Using this one I am able to easily locate the most imporant mails when “screening”.
Well, this script has a “feature” I don’t like. It’s the way it uses to define colors. You edit the label’s title to include “Label #color” or “Label ##hexcolor”. This is fine, because it doesn’t show the “#color” in the listing, but it’s not fine because in the labels list the “#color” is shown. And I don’t like it.

So I’ve used a hard-coded hack found on the script’s home page. This way I don’t have to have the additional name in the label because I hard-code the colors into the script file. Sure, it’s less flexible but it looks better too :) Bellow is a sample of what I use:

function getLabelColorInfo(rawLabelName) {
switch (rawLabelName){
case "Label1": return {name: rawLabelName, color: "#EE4000"}; break;
case "Label2": return {name: rawLabelName, color: "#8FBC8F"}; break;
case "Label3": return {name: rawLabelName, color: "#FFD700"}; break;
case "Label4": return {name: rawLabelName, color: "#99CC32"}; break;
default: return{name: rawLabelName};
}
}

Note: Pics shamefully stollen from the scripts authors page.

Leave a Reply