A user script that lets you quickly switch Google search to different region.
< Обсуждения Google Search Region
Oups! it did not work with the Encrypted Google search since the "search sting try to localize not only the search but the TLD
Example: https://encrypted.google.ca/search?q=mySearch&hl=en
When you search from Google encrypted you must keep encrypted.google.com
So in this example I wanted to restrict the results search to Canada instead of worldwide.
To have it work the new reformatted URL should be https://encrypted.google.ca/search?q=mySearch&gl=ca
The &gl=ca
stand for Goolgle Location and the ca for Canada
The &hl
value you use is just to change the interface language NOT the results themselves.
If the intent of the script is to restrict the search results to one country you should only add &gl=2lettersCountryCode
instead of &HL=2lettersCountryCode
Personally I find it more useful to change only the results of the search and not the GUI since the interface is always set in my main language and IMO it's more consistent.
Regards
As far as I know, there is no difference between encrypted.google.com and www.google.com because Google uses HTTPS (encrypted) by default since 2016. So you may just use www.google.com.
Changing TLD does give priority to results in that region, and people can also see some results outside of that region for reference. You can use search tools menu to restrict the search results.
I will consider adding more detailed options in the next major version.
There is a BIG one difference for me "encrypted.google.com" does not default to your country (via IP) and also it doesn't show AMP stories.
Most of the time I don,t want privileged results for my country so encrypted.google.com is more neutral and give me more relevant results.
When I want results for a specific country I've add &gl=2lettersCountryCode
to my query and I keep the same GUI but the results are privileged for the country I've ask for.
Regards ?
Small Issue
Did not work on https://encrypted.google.com so just modify the include to:
And it will work.
Regards !