Gmail Unread Message Count in Favicon

By Eric Bogs Last update Dec 22, 2011 — Installed 31,132 times.

Opera support?

in
Subscribe to Opera support? 3 posts, 2 voices



rdsu User
OperaWindows

Hi,

Can you also support Opera browser?

Thanks

 
michoch User
OperaWindows

Hi,

seconded!

Thanks in advance.

 
michoch User
OperaWindows

Hi,

I managed to run this in Opera using Greasemonkey functions emulator (http://www.howtocreate.co.uk/operaStuff/userjs/...) and giving it few changes, ie. changing load listener to:

window.addEventListener('load', function() {
  if (window.gmonkey) { // Version 2 Method, using Google's API
    window.gmonkey.load('1.0', function(gmail) {
      initialize(gmail);
    });
  }
}, true);


and changing this.getInboxSpan_ and this.poll_ functions to:
this.getInboxSpan_ = function() {
  return (typeof gmail != 'undefined') ? gmail.getNavPaneElement().getElementsByTagName('a')[0] : 0;
}
                      
this.poll_ = function() {
  if (self.getInboxSpan_() != 0) {
    self.checkCount_(self.getInboxSpan_().textContent);
  }
}



Although after some time (don't know exactly - approx. 30-60 minutes) it stops working (probably leaving no js error trace) and Gmail needs reload in order to work again.

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