Google's Old Favicon

Last update on Sep 15, 2008

Brings back the old 'classic' Google favicon.

Before and after:


You might find (I did) that your Google bookmark may spontaenously revert to the new g favicon (leaving tabs and the URI bar with the G). If you're having this problem on Firefox2, you can use Favicon Picker 2 to set your Google bookmark icon (right-click, Save As) permanently. With Firefox3, you'll have to go a little deeper (or you can add this with Stylish -- just edit the first two lines to match your tld).

Let me know in the comments if you find an area on Google where it's not working (or where it shouldn't be and it is).

Updated:
[15 Sep 2008]
1.0 - calling it 1.0 ^_^

[01 June 2008]
0.14 - more @exclude's ... *sigh*

[31 May 2008]
0.11 - @exclude'd a couple more possible addresses for Google Apps
0.09 - Changed .com to .tld for the international users (as per comment by gantt)

[30 May 2008]
0.08 - no longer replacing icons for Google Apps (as per comment by dshea)
0.03 - added @exclude(s) for mail.google.com


Try out my CipherFox extension: http://addons.mozilla.org/en-US/firefox/addon/8919



You could comment on this script if you were logged in.

10 comments Feed-icon

1 point
login to vote
XianPalin user
Posted Jun 17, 2008

This seems to be cancelled out by the "Googlepedia" extension, which injects a Wikipedia entry alongside the google search results. Would be nice to have these play together.

http://code.google.com/p/googlepedia/

1 point
login to vote
rafamx user
Posted Jun 6, 2008

thanks i miss the old favicon

1 point
login to vote
Posted Jun 3, 2008

I am glad I am not the only person who disliked the new favicon and could not pick it out from among their many tabs. Thank you for writing this!

1 point
login to vote
MkFly script's author
Posted Jun 1, 2008

Grr ... the whole point of the if statement for me was to avoid a bazillion @exclude lines ... looks like that isn't going to happen. :~

iGoogle uses the main Google domain, yet specifically sets the shortcut icon to http://www.google.com/favicon.ico ... their pages are sure damned inconsistent. Some apps get their own subdomain, some don't ... sometimes they set ICON sometimes they set icon, or SHORTCUT ICON ... or shortcut icon ... and in iGoogle's case, when it isn't even needed! Hah!

Oh well ... fixed now! Thanks again gantt.

1 point
login to vote
gantt scriptwright
Posted Jun 1, 2008

I also suggest removing the last if, which is unnecessary and prevents the replacement of the favicon in iGoogle. Another subdomains that should be excluded: http://docs.google.com/*, http://spreadsheets.google.com/*, http://sites.google.com/*, http://pages.google.com/* + the https versions.

1 point
login to vote
MkFly script's author
Posted May 31, 2008

Thanks gantt. :o]

1 point
login to vote
gantt scriptwright
Posted May 31, 2008

You should replace .com with .tld in your includes to also allow international domains (all people outside US are redirected to local domains). You should also exclude these sites because they have custom favicons: http://www.google.com/calendar/*, http://www.google.com/reader/*, http://picasaweb.google.com/*, http://pack.google.com/*, http://toolbar.google.com/*, http://desktop.google.com/*, https://www.google.com/health/*, http://www.google.com/notebook/*, http://webaccelerator.google.com/*, http://groups.google.com/*.

1 point
login to vote
Posted May 31, 2008

Thanks so much for hacking this together so quickly. I don't know what Google is thinking with this but the lowercase version is SO much less distinctive. I can now tell witch tab I'm looking for again.

1 point
login to vote
MkFly script's author
Posted May 30, 2008

Thanks for the code dshea. :o)

Try her now ... Reader and Notebook can't agree on whether to use icon or shortcut icon, so I included them both. Those apps (at least) will now give their normal favicons.

1 point
login to vote
dshea user
Posted May 30, 2008

Some of the google applications (reader, notebook) run off the main www.google.com domain but use their own favicons. Maybe you could add a condition like this to the code to only replace the icon for pages that don't define a favicon or set it to /favicon.ico?

if ((!document.evaluate('//link[translate(@rel, "abcdefghijklmnopqrstuvwxyz", "ABCDEFGHIJKLMNOPQRSTUVWZYZ") = "SHORTCUT ICON"]', document, null, XPathResult.ORDERED_NODE_ITERATOR_TYPE, null).iterateNext())
|| (document.evaluate('//link[translate(@rel, "abcdefghijklmnopqrstuvwxyz", "ABCDEFGHIJKLMNOPQRSTUVWXYZ") = "SHORTCUT ICON"]/@href', document, null, XPathResult.STRING_TYPE, null).stringValue == '/favicon.ico'))

You could comment on this script if you were logged in.