Greasy Fork is available in English.

FaviconizeGoogle

Adds favicons next to Google search results. Also works for Ecosia, StartPage and Searx.

< FaviconizeGoogleについてのフィードバック

レート:良 – スクリプトは良好に動作する

§
投稿日: 2016/11/14
編集日: 2016/11/15

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.gr in the awesomebar, I get redirected to: https://www.google.gr/?gws_rd=ssl

These, based on this this pages means that:

Google redirecting you to a Google server that is based on you location. The ‘?’ in the URL defines a parameter to which, (in my case, Google.gr) now gets redirected to said instructions after the ? mark in the URL

gfe = google front-end, gws = google web server rd = redirect cr = country

And the final ei means Engine Id and also some random combination of numbers and letters is a cookie sent to our desktop

Then. the resulting search results pages URLs for e.g. firefox are like this: https://www.google.gr/?gfe_rd=cr&ei=(some_random_string)#q=firefox, https://www.google.gr/?gws_rd=ssl#q=firefox and https://www.google.gr/?gfe_rd=cr&ei=(some_random_string)&gws_rd=ssl#q=firefox respectively.


Currently In both such pages the script's @include rules 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:

// @include    https://www.google.*/?gws_rd=ssl*
// @include    https://www.google.*/?gfe_rd=cr*

Or better, replace all @include with this regex:

// @include   /https?:\/\/((www\.)?|encrypted\.)google\..*\/(search|webhp|\?gws_rd|\?gfe_rd)?.*/
joeytwiddle作者
§
投稿日: 2016/11/17

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.

§
投稿日: 2016/11/17
編集日: 2016/11/18

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)?.*/
joeytwiddle作者
§
投稿日: 2016/11/19

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.

返信を投稿

返信を投稿するにはログインしてください。