Google always in com

Redirects Google from local TLD to ".com" top level domain (ncr, no country redirect, gws_rd)

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Google always in com
// @version      2018.12.24.1207
// @description  Redirects Google from local TLD to ".com" top level domain (ncr, no country redirect, gws_rd)
// @namespace    https://greasyfork.org/en/users/30-opsomh
// @include      *.google.*/*
// @include      *.blogspot.*/*
// @exclude      *.google.com/*
// @exclude      *.blogspot.com/*
// @grant        none
// @inject-into  auto
// @run-at       document-start
// ==/UserScript==

var url = new URL(location.href);

//http://techxt.com/list-of-all-google-domains/1373/
//https://www.google.com/supported_domains
//https://ipfs.io/ipfs/QmXoypizjW3WknFiJnKLwHCnL72vedxjQkDDP1mXWo6uco/wiki/List_of_Google_domains.html
var re = /(\.google|\.blogspot)\.[a-z]{2,3}(?:\.[a-z]{2})?$/;
if(re.test(url.hostname))
{
    window.stop();
    console.log('Google always in com:', url.hostname);
    url.searchParams.set('gws_rd', 'cr');
    url.hostname = url.hostname.replace(re, '$1.com');
    location.assign(url.href);
}