A jQuery plugin for displaying a favicon on links. Uses getFavicon to transfer *.ico to *.png.
Version 1.1 - August 8th, 2011
As seen on http://plugins.jquery.com/showfavicons/
Author: Benjamin Boudreau (bboudreau.ca/)
// To show external links
$.showfavicons('external');
// To show internal links
$.showfavicons('internal');
// To show both types of links
$.showfavicons();
// Ignoring other hostnames on external
$.showfavicons('external', {hosts : [ 'wiki.bboudreau.ca', 'foo.bboudreau.ca' ] })
// Adding other hostnames on internal
$.showfavicons('internal', {hosts : [ 'wiki.bboudreau.ca', 'bar.bboudreau.ca' ] })
// Ignoring other hostnames on external and setting the default favicon
$.showfavicons('external', { hosts: [ 'bboudreau.ca' ], defaultFavicon : 'images/external.gif' });
// Ignoring other hostnames on external and setting the debug flag to see which links are getting a favicon
$.showfavicons('external', { hosts: [ 'bboudreau.ca' ], debug : true });
defaultFavicon : 'external.gif' // Default favicon when/if getfavicon app is offline.
hosts : [] // Array containing hostnames to include on internal or to exclude on external.
debug : false // Boolean to show which links are getting faviconized.
- Support defaultImage of getFavicon by Jason Cartwright
- Support the multiple domains feature of getFavicon to overcome the browser connection limits to Example creating a random string
- Fix getFavicon's bug : Sometimes doesn't get the correct favicon when there are multiple favicons per domain (http://twitter.com/mydogminton/status/2374789273)
- At first guess it seems that it should get the complete link of the icon instead of adding the icon link to the base url.
- getFavicon by Jason Cartwright Source Source
- JQuery Faviconize by Samuel Le Morvan