ACT.Google.DM.NCR

Google Search Redirect to .com domian.

当前为 2022-03-24 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name ACT.Google.DM.NCR
  3. // @description Google Search Redirect to .com domian.
  4. // @author ACTCD
  5. // @version 20220324.1
  6. // @license GPL-3.0-or-later
  7. // @namespace ACTCD/Userscripts
  8. // @supportURL https://github.com/ACTCD/Userscripts#contact
  9. // @homepageURL https://github.com/ACTCD/Userscripts
  10. // @match *://www.google.com/*
  11. // @match *://www.google.ad/*
  12. // @match *://www.google.ae/*
  13. // @match *://www.google.com.af/*
  14. // @match *://www.google.com.ag/*
  15. // @match *://www.google.com.ai/*
  16. // @match *://www.google.al/*
  17. // @match *://www.google.am/*
  18. // @match *://www.google.co.ao/*
  19. // @match *://www.google.com.ar/*
  20. // @match *://www.google.as/*
  21. // @match *://www.google.at/*
  22. // @match *://www.google.com.au/*
  23. // @match *://www.google.az/*
  24. // @match *://www.google.ba/*
  25. // @match *://www.google.com.bd/*
  26. // @match *://www.google.be/*
  27. // @match *://www.google.bf/*
  28. // @match *://www.google.bg/*
  29. // @match *://www.google.com.bh/*
  30. // @match *://www.google.bi/*
  31. // @match *://www.google.bj/*
  32. // @match *://www.google.com.bn/*
  33. // @match *://www.google.com.bo/*
  34. // @match *://www.google.com.br/*
  35. // @match *://www.google.bs/*
  36. // @match *://www.google.bt/*
  37. // @match *://www.google.co.bw/*
  38. // @match *://www.google.by/*
  39. // @match *://www.google.com.bz/*
  40. // @match *://www.google.ca/*
  41. // @match *://www.google.cd/*
  42. // @match *://www.google.cf/*
  43. // @match *://www.google.cg/*
  44. // @match *://www.google.ch/*
  45. // @match *://www.google.ci/*
  46. // @match *://www.google.co.ck/*
  47. // @match *://www.google.cl/*
  48. // @match *://www.google.cm/*
  49. // @match *://www.google.cn/*
  50. // @match *://www.google.com.co/*
  51. // @match *://www.google.co.cr/*
  52. // @match *://www.google.com.cu/*
  53. // @match *://www.google.cv/*
  54. // @match *://www.google.com.cy/*
  55. // @match *://www.google.cz/*
  56. // @match *://www.google.de/*
  57. // @match *://www.google.dj/*
  58. // @match *://www.google.dk/*
  59. // @match *://www.google.dm/*
  60. // @match *://www.google.com.do/*
  61. // @match *://www.google.dz/*
  62. // @match *://www.google.com.ec/*
  63. // @match *://www.google.ee/*
  64. // @match *://www.google.com.eg/*
  65. // @match *://www.google.es/*
  66. // @match *://www.google.com.et/*
  67. // @match *://www.google.fi/*
  68. // @match *://www.google.com.fj/*
  69. // @match *://www.google.fm/*
  70. // @match *://www.google.fr/*
  71. // @match *://www.google.ga/*
  72. // @match *://www.google.ge/*
  73. // @match *://www.google.gg/*
  74. // @match *://www.google.com.gh/*
  75. // @match *://www.google.com.gi/*
  76. // @match *://www.google.gl/*
  77. // @match *://www.google.gm/*
  78. // @match *://www.google.gr/*
  79. // @match *://www.google.com.gt/*
  80. // @match *://www.google.gy/*
  81. // @match *://www.google.com.hk/*
  82. // @match *://www.google.hn/*
  83. // @match *://www.google.hr/*
  84. // @match *://www.google.ht/*
  85. // @match *://www.google.hu/*
  86. // @match *://www.google.co.id/*
  87. // @match *://www.google.ie/*
  88. // @match *://www.google.co.il/*
  89. // @match *://www.google.im/*
  90. // @match *://www.google.co.in/*
  91. // @match *://www.google.iq/*
  92. // @match *://www.google.is/*
  93. // @match *://www.google.it/*
  94. // @match *://www.google.je/*
  95. // @match *://www.google.com.jm/*
  96. // @match *://www.google.jo/*
  97. // @match *://www.google.co.jp/*
  98. // @match *://www.google.co.ke/*
  99. // @match *://www.google.com.kh/*
  100. // @match *://www.google.ki/*
  101. // @match *://www.google.kg/*
  102. // @match *://www.google.co.kr/*
  103. // @match *://www.google.com.kw/*
  104. // @match *://www.google.kz/*
  105. // @match *://www.google.la/*
  106. // @match *://www.google.com.lb/*
  107. // @match *://www.google.li/*
  108. // @match *://www.google.lk/*
  109. // @match *://www.google.co.ls/*
  110. // @match *://www.google.lt/*
  111. // @match *://www.google.lu/*
  112. // @match *://www.google.lv/*
  113. // @match *://www.google.com.ly/*
  114. // @match *://www.google.co.ma/*
  115. // @match *://www.google.md/*
  116. // @match *://www.google.me/*
  117. // @match *://www.google.mg/*
  118. // @match *://www.google.mk/*
  119. // @match *://www.google.ml/*
  120. // @match *://www.google.com.mm/*
  121. // @match *://www.google.mn/*
  122. // @match *://www.google.ms/*
  123. // @match *://www.google.com.mt/*
  124. // @match *://www.google.mu/*
  125. // @match *://www.google.mv/*
  126. // @match *://www.google.mw/*
  127. // @match *://www.google.com.mx/*
  128. // @match *://www.google.com.my/*
  129. // @match *://www.google.co.mz/*
  130. // @match *://www.google.com.na/*
  131. // @match *://www.google.com.ng/*
  132. // @match *://www.google.com.ni/*
  133. // @match *://www.google.ne/*
  134. // @match *://www.google.nl/*
  135. // @match *://www.google.no/*
  136. // @match *://www.google.com.np/*
  137. // @match *://www.google.nr/*
  138. // @match *://www.google.nu/*
  139. // @match *://www.google.co.nz/*
  140. // @match *://www.google.com.om/*
  141. // @match *://www.google.com.pa/*
  142. // @match *://www.google.com.pe/*
  143. // @match *://www.google.com.pg/*
  144. // @match *://www.google.com.ph/*
  145. // @match *://www.google.com.pk/*
  146. // @match *://www.google.pl/*
  147. // @match *://www.google.pn/*
  148. // @match *://www.google.com.pr/*
  149. // @match *://www.google.ps/*
  150. // @match *://www.google.pt/*
  151. // @match *://www.google.com.py/*
  152. // @match *://www.google.com.qa/*
  153. // @match *://www.google.ro/*
  154. // @match *://www.google.ru/*
  155. // @match *://www.google.rw/*
  156. // @match *://www.google.com.sa/*
  157. // @match *://www.google.com.sb/*
  158. // @match *://www.google.sc/*
  159. // @match *://www.google.se/*
  160. // @match *://www.google.com.sg/*
  161. // @match *://www.google.sh/*
  162. // @match *://www.google.si/*
  163. // @match *://www.google.sk/*
  164. // @match *://www.google.com.sl/*
  165. // @match *://www.google.sn/*
  166. // @match *://www.google.so/*
  167. // @match *://www.google.sm/*
  168. // @match *://www.google.sr/*
  169. // @match *://www.google.st/*
  170. // @match *://www.google.com.sv/*
  171. // @match *://www.google.td/*
  172. // @match *://www.google.tg/*
  173. // @match *://www.google.co.th/*
  174. // @match *://www.google.com.tj/*
  175. // @match *://www.google.tl/*
  176. // @match *://www.google.tm/*
  177. // @match *://www.google.tn/*
  178. // @match *://www.google.to/*
  179. // @match *://www.google.com.tr/*
  180. // @match *://www.google.tt/*
  181. // @match *://www.google.com.tw/*
  182. // @match *://www.google.co.tz/*
  183. // @match *://www.google.com.ua/*
  184. // @match *://www.google.co.ug/*
  185. // @match *://www.google.co.uk/*
  186. // @match *://www.google.com.uy/*
  187. // @match *://www.google.co.uz/*
  188. // @match *://www.google.com.vc/*
  189. // @match *://www.google.co.ve/*
  190. // @match *://www.google.vg/*
  191. // @match *://www.google.co.vi/*
  192. // @match *://www.google.com.vn/*
  193. // @match *://www.google.vu/*
  194. // @match *://www.google.ws/*
  195. // @match *://www.google.rs/*
  196. // @match *://www.google.co.za/*
  197. // @match *://www.google.co.zm/*
  198. // @match *://www.google.co.zw/*
  199. // @match *://www.google.cat/*
  200. // @grant none
  201. // @run-at document-start
  202. // ==/UserScript==
  203.  
  204. (function () {
  205. 'use strict';
  206.  
  207. const url = new URL(location);
  208. if (url.hostname == "www.google.com") return; // Only to display userscript match
  209. url.hostname = "www.google.com";
  210. url.searchParams.set("gl", "us");
  211. url.searchParams.set("hl", "en");
  212. url.searchParams.set("pws", "0");
  213. url.searchParams.set("gws_rd", "cr");
  214. window.stop();
  215. location.replace(url.href);
  216.  
  217. })();