// ==UserScript== // @name FaviconizeGoogle // @namespace http://userscripts.org/users/89794 (joeytwiddle) // @description Adds favicons next to Google search results. // @downstreamURL http://userscripts.org/scripts/source/48636.user.js // @version 1.2.5 // @include http://www.google.*/search?* // @include https://www.google.*/search?* // @include http://www.google.com.*/search?* // @include https://www.google.com.*/search?* // @include http://www.google.*/webhp* // @include https://www.google.*/webhp* // @include http://www.google.com.*/webhp* // @include https://www.google.com.*/webhp* // @include http://www.google.*/ // @include https://www.google.*/ // @include http://www.google.com.*/ // @include https://www.google.com.*/ // @include https://encrypted.google.*/search?* // @downloadURL none // ==/UserScript== // DONE: Provided more options where to place favicon: by the link or by the // url, before or after, inside or outside the link. However in my opinion // they all suck except the default. ;) // Broken images would be messy, but Firefox seems to hide them after a while // anyway. We do still see the gap from the image's padding though! // It might be desirable to check each image actually exists/loads, or remove it. // Is that possible, without making an http request ourselves? // Third-party host URL detection is implemented leniently, and accordingly // hostname extraction implemented aggressively, which results in favicons // being given to unexpected things like bookmarklets which contain a site url. var placeFaviconByUrl = false; var placeFaviconAfter = false; var placeFaviconInsideLink = false; function filterListBy(l,c) { var ret = new Array(); for (var i=0;i