Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Gmail Label Hider

Allows for Labels to be hidden in the label bar

Gmail Label Hider: v0.02
Ben Hengst
ben.hengst+glh@gmail.com

This script will hide any label that you rename to begin with 'x_' so for instance if you have a label of 'TEST' and rename it to 'x_TEST' then you will not see it in the label bar on the side of the Gmail interface.

KNOWN ISSUES:

> Currently your labels can not contain certin charicters:
{}
[]
()
(space)
.

> You must refresh the entire page after you change the names of your labels.

RESOURCES USED:

> http://diveintogreasemonkey.org/toc/index.html
> http://www.devguru.com/Technologies/ecmascript/...
> http://www.regular-expressions.info/javascript....
> http://greasemonkey.mozdev.org/authoring.html

CHANGE LOG:

> v0.02 Fixed issue with Google changeing location of the label name

> v0.01 Inital release

LICENSE:

> http://creativecommons.org/licenses/GPL/2.0/




Feb 13, 2008
goldenratio User

This worked for a while with Gmail2, but apparently Google updated Gmail once more, and now this script no longer works for me.

My code-fu is weak but I suspect it's this line that is different among Gmail users:

target.src.className == 'qn0D4e'

How do I find the proper class name for my Gmail client?

 
Feb 11, 2008
Eugene Schava Scriptwright

It's a great script but it doesn't work with Gmail2 for me. So I've created my version at http://userscripts.org/scripts/show/22635

 
Dec 28, 2007
ben hengst Script's author

howdy all, sorry it's taken me so long to update to match Gmail2.0. v0.03 of GLH now should match up with Gmail2.0.

 
Dec 11, 2007
ifieatturkey User

Please update! It's a great script!

 
Aug 28, 2007
Arthaey Angosii Scriptwright

I wrote a script based on this one, called Gmail Label Hider (pref-based, at http://userscripts.org/scripts/show/11774 .

It works by asking you which labels you want to hide, so you don't need to have your labels named with any particular prefix.

 
Apr 23, 2007
Emily User

doesn't appear to work with # either (which means that label coloring isn't compatible).

 
Feb 28, 2007
ben hengst Script's author

Britne: sorry that you couldn't get it to work, can you explain a bit more on how you were running things?

 
Feb 23, 2007
Britne User

couldn't get this to work. now back to unlabelling 30+ labels that now have "x_" in front of them...

 
Feb 22, 2007
ben hengst Script's author

Leonardo: good idea, I'll see what I can whip up for you.

 
Feb 22, 2007
ben hengst Script's author

Shruti: yes you can just search for label:x_LABEL as your labels are still there. Thanks for playing around with the script.

 
Jan 27, 2007
Shruti User

What happens when you want to search for that label? Do you have to type label:x_LABEL or label:LABEL?

 
Oct 22, 2006
Leonardo Sar... User

Hi, I was looking for a script like Gmail Labels Hider for a long time and I'm glad you did such a great work. I'd like to suggest you a link "Show All" next to "Edit Labels" which would show all labels.

You could comment on this script if you were logged in.