中国大陆访问https://www.google.com时总是被重定向到https://www.google.cn/m,此脚本可以简单粗暴地再次重定向至https://google.com.hk以解决无法使用的问题。
// ==UserScript==
// @name 修正谷歌中国重定向
// @namespace http://tampermonkey.net/
// @version 2025-11-19
// @description 中国大陆访问https://www.google.com时总是被重定向到https://www.google.cn/m,此脚本可以简单粗暴地再次重定向至https://google.com.hk以解决无法使用的问题。
// @author shiraha
// @match https://google.cn/m
// @match https://www.google.cn/m
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// @license free
// ==/UserScript==
(function() {
document.location.href = document.location.href.replace('https://google.cn/m','https://google.com.hk').replace('https://www.google.cn/m','https://google.com.hk');
})();