Folders4Gmail

By Arend Last update Mar 4, 2010 — Installed 163,635 times.

Start folders expanded

in
Subscribe to Start folders expanded 4 posts, 2 voices



Chris Morrell Scriptwright
FirefoxMacintosh

I've been digging through the code but can't quite figure out how to get this to work. I'd like to update the script so that it starts with all folders expanded (or, even better, with unread folder expanded). Anyone have any suggestions about where to make this change? I thought I could tweak the initLabels() method, but that doesn't seem to be doing it…

Any help is greatly appreciated!

 
Arend Script's Author
FirefoxWindows

To make all foldesr expanded by default is simple. Search for the first occurence of this.isExpanded = false; (line 249) and change false to true.

Doing this only for unread folders will be more difficult. You could try to modify the function checkUnreadCount(label) to do something like function expandLabelInView() which expands the label that is currently selected in Gmail.

 
Chris Morrell Scriptwright
FirefoxMacintosh

That didn't seem to do anything. Changed this.isExpanded to true, refreshed scripts and reloaded the page and nothing happened. Is there some cache that I have to refresh?

 
Chris Morrell Scriptwright
FirefoxMacintosh

I uninstalled and reinstalled and that fixed it.

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