Gmail Label Colors

By Mihai Parparita Last update Dec 23, 2005 — Installed 13,094 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 29 posts, 22 voices



Harsh Shah Scriptwright

Bug Report:
When I select a message and try to remove a label using the drop-down menu, it says this:

The label "<!-- NES -->Papers #990099<!-- NEE -->" has been removed from the conversation.

but of course, there is no such (the entire string) label, so the label "Papers" is stil there.

 
Harsh Shah Scriptwright

Great Idea. totally love it. Especially coupled with Randy's tip, because in that case I can access gmail from anywhere (possible without greasemonkey), and the labels won't show up with trailing color names. btw, is there any way to color the "Inbox" label? Simply adding a case "Inbox"; return {...} didn't work.

 
patxi1977 User

Excellent idea! I am running it and I love it. Building on what Randy suggested, you might get some inspiration from the Gmail: Random Signature script http://userscripts.org/scripts/show/1704 , where color setup is achieved at the settings menu.

Still, a lovely idea and implementation!

 
Randy Harmelink User

Very nice. However, I didn't like having to add the suffixes to each label, especially since they show up on the label list as well and would shift off my number of unread messages for the label.

But it was very easy to change the routine to hard-code my own colors. For example:

function getLabelColorInfo(rawLabelName) {
switch (rawLabelName) {
case "I-CANSLIM": return {name: rawLabelName, color: "green"}; break;
case "I-Investing": return {name: rawLabelName, color: "blue"}; break;
default: return{name: rawLabelName};
}
}

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel