// ==UserScript== // @name 谷歌搜索重定向 // @namespace https://github.com/amorphobia/tampermonkey-scripts // @version 0.1.2 // @description 自动从 google.cn 跳转到 google.com.hk // @author amorphobia // @match https://www.google.cn/search* // @run-at document-start // @noframes // @homepageURL https://github.com/amorphobia/tampermonkey-scripts // @supportURL https://github.com/amorphobia/tampermonkey-scripts/issues // @license AGPL-3.0-or-later // @downloadURL https://update.greasyfork.icu/scripts/452864/%E8%B0%B7%E6%AD%8C%E6%90%9C%E7%B4%A2%E9%87%8D%E5%AE%9A%E5%90%91.user.js // @updateURL https://update.greasyfork.icu/scripts/452864/%E8%B0%B7%E6%AD%8C%E6%90%9C%E7%B4%A2%E9%87%8D%E5%AE%9A%E5%90%91.meta.js // ==/UserScript== (function () { 'use strict'; const url = new URL(location); url.hostname = 'www.google.com.hk'; location.replace(url); })();