Created
August 3, 2016 15:09
-
-
Save codexss/00ba228599e6c98c0869d506aae6f230 to your computer and use it in GitHub Desktop.
Edited by Lentin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Always google dot com | |
// @description Find and replace Google DOT Country-TLD to Google DOT com | |
// @namespace https://greasyfork.org/en/users/2871-spacedingo | |
// @version 1.06 | |
// @include http*://*.google.* | |
// @exclude http*://*.google.com/* | |
// @exclude *://*/_/chrome/newtab* | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== | |
// https://www.google.com/supported_domains | |
window.location.replace(window.location.toString().replace( | |
/^(https:\/\/.*.google.)(?:ad|ae|com.af|com.ag|com.ai|al|am|co.ao|com.ar|as|at|com.au|az|ba|com.bd|be|bf|bg|com.bh|bi|bj|com.bn|com.bo|com.br|bs|bt|co.bw|by|com.bz|ca|cd|cf|cg|ch|ci|co.ck|cl|cm|com.co|co.cr|com.cu|cv|com.cy|cz|de|dj|dk|dm|com.do|dz|com.ec|ee|com.eg|es|com.et|fi|com.fj|fm|fr|ga|ge|gg|com.gh|com.gi|gl|gm|gp|gr|com.gt|gy|com.hk|hn|hr|ht|hu|co.id|ie|co.il|im|co.in|iq|is|it|je|com.jm|jo|co.jp|co.ke|com.kh|ki|kg|co.kr|com.kw|kz|la|com.lb|li|lk|co.ls|lt|lu|lv|com.ly|co.ma|md|me|mg|mk|ml|com.mm|mn|ms|com.mt|mu|mv|mw|com.mx|com.my|co.mz|com.na|com.nf|com.ng|com.ni|ne|nl|no|com.np|nr|nu|co.nz|com.om|com.pa|com.pe|com.pg|com.ph|com.pk|pl|pn|com.pr|ps|pt|com.py|com.qa|ro|ru|rw|com.sa|com.sb|sc|se|com.sg|sh|si|sk|com.sl|sn|so|sm|sr|st|com.sv|td|tg|co.th|com.tj|tk|tl|tm|tn|to|com.tr|tt|com.tw|co.tz|com.ua|co.ug|co.uk|com.uy|co.uz|com.vc|co.ve|vg|co.vi|com.vn|vu|ws|rs|co.za|co.zm|co.zw|cat)(\/.*)/ | |
, "$1com$2")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment