Unread counts gone
|
|
As of today, the icons are no longer displaying the unread message counts. Presumably Google has changed something. |
|
|
DOH! Yeah, looking at the source, it looks like the changed it.
|
|
|
Hey! I just did a backport of the Gmail FavIcon Alerts to get the script working again. This, unfortunately, breaks compatibility with the Compactor script. My guess would be that the it is going to to continue to update, so I'll be looking into a more permanent hook into the div we're both using. |
|
|
Yeah, i realized it. I think the only way of reliably getting it is to actually crawl though all the elements looking for the word "Inbox". The problem is of course foreign languages. |
|
|
What's nice is that the unread indicator ("(42)") is always used, so doing a RegEx for that on the first a tag (gmail.getNavPaneElement().getElementsByTagName('a')[0]) makes it work in every language supported by Gmail. I believe I may be able to use the existing DOM node, then just grab its parent to properly select the div (which hasn't changed since I started hacking away at the Gmail DOM). I'll to test this out and let you know if it's successful or not. |
|
|
I am working on just doing an XPath search by the word itself, since i need to grab all the links evalXPath("//*[count(*)=0 and contains(.,'Inbox')]", navPane)[0] I will have to have an array set up with all the languages in order to use the approach, but it seems to be the most foolproof method. |
|
|
For the time being I am using:
|
![]() ![]() |
I've updated Gmail FavIcon Alerts 3 to once again work with GMail Compactor. You can get the latest copy here: http://userscripts.org/scripts/show/24430 |
![]() ![]() |
Thank you for doing this. I am very close to releasing the next version, and it should no longer interfere with your script, or any script that makes use of the text on the left. I am just having one final snag with anonymous functions. |

