Gmail - auto expand Nested Labels

By KosciaK Last update Apr 22, 2010 — Installed 406 times.


Script Summary: Auto expand Nested Labels in Gmail

Version: 0.1.1

Script homepage

Usage:
Before installing this script enable Nested Labels in Gmail (Settings → Labs)
After installing the script you have to edit the source to set the labels you want to automatically expand. Labels are case sensitive ('work' and 'WORK' are not the same). Parent labels will be expanded automatically.
Example of autoExpand setting:

var autoExpand = ['forum/google', 'Work', 'Family/Holidays'];
Compability:
Script was tested in Firefox 3.0.x in both normal Gmail and Google Apps.

Unfortunately there are problems with Google Chrome - element.dispatchEvent(evt) seems to be not working correctly (maybe there's something wrong with declared event, not sure...). If you know how to fix it please contact me.

Changelog:
0.1.1 - fixed after changes in gmail
0.1 - initial version