您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
English interface with any-language results and SafeSearch off
// ==UserScript== // @name Google English Language + No SafeSearch // @namespace http://tampermonkey.net/ // @version 1.0 // @description English interface with any-language results and SafeSearch off // @author DrSexo // @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 // ==/UserScript== (function() { 'use strict'; const forceParams = { hl: 'en', // English interface safe: 'off' // Disable SafeSearch }; const url = new URL(window.location.href); let modified = false; // Set forced parameters Object.entries(forceParams).forEach(([key, value]) => { if (url.searchParams.get(key) !== value) { url.searchParams.set(key, value); modified = true; } }); // Remove language restriction (lr param) if (url.searchParams.has('lr')) { url.searchParams.delete('lr'); modified = true; } if (modified) { window.stop(); window.location.replace(url.toString()); } })();