Adds favicons next to Google search results. Also works for Ecosia, StartPage and Searx.
Thanks for making it easy for me :)
I have used your regexp, and pushed a new version. I will now wait for the bug reports to roll in. j/k ;)
By the looks of it, that would match http://google.com.ilovespam.cx/? but I guess that's nothing to worry about right now.
You're right :wink:
So, after checking wikipedia's list of domains owned by Google it should only match 2 or 3 characters after the 1st dot, (and optionally a 2nd dot, followed by exactly 2 characters).
Here it is:
// @include /https?:\/\/((www\.)?|encrypted\.)google\.[a-z]{2,3}(\.[a-z]{2})?\/(search|webhp|\?gws_rd|\?gfe_rd)?.*/
Great, thanks. Included.
Greasemonkey has a magic .tld string that can help with this, but I'm not sure if it works in other userscript runners (like TamperMonkey) so I'll use the regexp for now.
Great script! It's a must when using google search
Thanks for this script, joeytwiddle. It's super useful! Love it!
Just a minor thing: Whenever I open a new Google page (https://google.com) (in Firefox or Chrome) I get directed to:
https://www.google.gr/?gfe_rd=cr&ei=(somerandom_string).And, If I just type
google.grin the awesomebar, I get redirected to:https://www.google.gr/?gws_rd=sslThese, based on this this pages means that:
Then. the resulting search results pages URLs for e.g.
firefoxare like this:https://www.google.gr/?gfe_rd=cr&ei=(some_random_string)#q=firefox,https://www.google.gr/?gws_rd=ssl#q=firefoxandhttps://www.google.gr/?gfe_rd=cr&ei=(some_random_string)&gws_rd=ssl#q=firefoxrespectively.Currently In both such pages the script's
@includerules don't match the above URLs and so it doesn't work. Therefore I'd like to ask you please to add these two extra rules to the script:Or better, replace all
@includewith this regex: