Gmail Spam-count Hide

By daniel Rozenberg Last update Nov 20, 2007 — Installed 20,158 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 40 posts, 26 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Victor Ly User

Please update this script to work with the current Gmail interface. Thanks.

 
leafduo User

not work now

 
Arend v. Rei... Scriptwright

I've temporarily uploaded my suggested fix (see comment below) as a userscript:
http://userscripts.org/scripts/show/22660

You can try that until the main script is updated.

 
Gangles User

I appreciate the link, but I'm hoping you won't mind directing it to my new domain instead: http://gangles.ca/?p=63

 
joey3002 User

Where do I find my spam id in the source? I'll gladly assist with getting this fixed..

 
Rob Wilkerson Scriptwright

@Daniel - I swear it was working for me earlier on my XP machine at the office, but you're right. It's not working now that I'm home on my Mac nor is it working on my PC any longer.

Arend's change seems to work for me on both the Mac and PC. I have no idea what happened between this morning and now, but my apologies for any confusion.

 
Arend v. Rei... Scriptwright

@daniel
Here's my try. Pretty ugly, but it seems to work:
div.ybaOyc>div>div+div+div+div+div+div+div.ACpQre div.PQmvpb span

With this the spam count is shown again when you are in Spam view. Delete the .ACpQre part, if you don't like this.

 
daniel Rozen... Script's Author

@Rob - Your fix didn't work for me, my Spam link's ID is 1f8p - and div[id^="1f8"] is too generic, it hides all the navigation links... I'd be glad if anyone with FireBug and some free time would check their spam link's ID, and the ID of the element(s) above. That might help me find a CSS rule that will work for everyone

 
Rob Wilkerson Scriptwright

Spurious is right, but now Google has added an ID to make life easier (in the short term):

Replace

#ds_spam b,div[id$="^s"] span

with

div[id="1f8q"] span

Don't forget that it needs to be replaced twice. It seems to be working for me.

 
spurious User

This no longer works.

 
hebbet Scriptwright

Maybe you can help me. Hide Spam Count breaks a thing in my Blue Gmail Skin http://pascal.herbert.googlepages.com/bluegmail...

If there are Spams and your script is installed, the background is not it should be.

 
Gina Trapani Scriptwright

Woo-hoo! Thanks for getting this updated. Just included it in Better Gmail 2--thanks again!

http://ginatrapani.org/workshop/firefox/betterg...

 
Paul Irish Scriptwright

thanks for the update!

 
Rob Wilkerson Scriptwright

Brilliant! Thanks for the effort.

 
V Dumont User

Thank you Arend, your fix work!

 
Arend v. Rei... Scriptwright

The following fix works for me:
Replace (twice)
span[title^="Spam ("]
with
div[id$="^s"] span

The stylish code relies on the id starting with 1f9t. That is not always the case. The id-prefix changes sometimes.

 
daniel Rozen... Script's Author

Google are constantly changing GMail's code, which makes it hard to fix this script... In a few days I'll look again at GMail to see if the changes appear to stop... :)

 
Holliday Scriptwright

But I don't want them marked read...
Could someone please update the script again, I miss it.

 
Gangles User

While I love this script, you *can* actually mark spam messages as read using the Gmail filter system:

http://quixotic-engineer.blogspot.com/2007/11/g...

 
Indros User

And then it randomly stopped working. Ack!

 
Indros User

I installed the script today in FF 2.0.0.9 on Mac OS X 10.4.10. I have Better Gmail 2.0 installed as well with all but the Message Details option checked.

So far, it works perfectly as I navigate through Gmail, refresh Gmail, or even restart Firefox.

 
_____ User

GMail changed its code yet again! I guess those google guys are still perfecting their new interface. what a pain for us script-writers, but improvement is good for users :)

 
Rob Wilkerson Scriptwright

So here's what I've noticed. I open Gmail and the spam count is not hidden. Gmail sits a while (don't know how long, at this point) and at some point I look back and the count is hidden. I hit 'F5' and the count is back when the page is reloaded.

I don't know quite what to make of that yet, but when I can dedicate some time, I might try to sort out what's going on.

 
daniel Rozen... Script's Author

@Gina and @Rob... It currently works for me, but we might have different versions of the new version... If any of you would like to help me figure out how to fix this for all, email me (my email is in the script's code)

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