Gmail Favicon Alerts 3

By Peter Wooley Last update Nov 17, 2009 — Installed 26,427 times. Daily Installs: 26, 39, 40, 40, 28, 33, 24, 24, 42, 24, 29, 29, 27, 31, 37, 38, 40, 26, 34, 29, 32, 29, 29, 31, 28, 39, 17, 98, 20, 21, 23

Option just for mail count?

Subscribe to Option just for mail count? 3 posts, 2 voices

melvynadam User
FirefoxWindows

I'm grateful you've updated the script and find the count of the number of unread messages very useful. However I'd like to disable the changing of the icon and just leave your Red icon there permanently. Can you tell me which elements of the script to comment out in order to make this happen?

 
Peter Wooley Script's Author
FirefoxWindows

The script will be a bit overkill, but if you comment out line 171-172 and add this.setIcon(self.icons.read); below, it should set the icon to the red envelope, and not incur anymore overhead.

So, to sum up, line 171-172 changes from:

this.timer = setInterval(this.poll, 500);
this.poll();

To:
//this.timer = setInterval(this.poll, 500);
//this.poll();
this.setIcon(self.icons.read);

I have tested it to work in Firefox 3.5 on Windows XP.

 
Peter Wooley Script's Author
FirefoxWindows

Just took another look at your message and realized this won't solve your problem. At this point, you'd need to follow the steps in this thread (http://userscripts.org/topics/30625) to add the pixel-by-pixel colors to the array. Unfortunately, the <canvas> is limited for security from accepting a remote or Base64-encoded image, so the image must be constructed from a pixel map.

As I mentioned in the other thread, I might make a tool to make this a little easier.</canvas>

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