Force google language to english & disable google safe search

Force google to use english language

目前為 2023-07-09 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Force google language to english & disable google safe search
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  Force google to use english language
// @author       kenshin.rorona
// @match        https://www.google.com/search?*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=google.com
// @grant        none
// @run-at       document-start
// @license      MIT
// credit: https://gf.qytechs.cn/en/scripts/25286-google-disable-safesearch-automatically
// ==/UserScript==

(function() {
    'use strict';
    window.addEventListener('load', function() {
        var url = window.location.href;
        var params = ["lr=lang_en", "hl=en", "safe=off"];
        for (var param of params) {
            if(url.indexOf(param) == -1){
                url += `&${param}`;
            }
        }
        if (url != window.location.href) {
            document.location.replace(url);
        }
    });
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址