您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
谷歌搜索切换到桌面维基 (通过替换地址)
// ==UserScript== // @name 谷歌搜索切换到桌面维基 // @namespace https://huching.net/ // @version 0.1 // @description 谷歌搜索切换到桌面维基 (通过替换地址) // @author hz2 // @match https://www.google.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=google.com // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // Google ... [...document.querySelectorAll('a[href*="https://zh.m.wikisource.org"]')].forEach(x=> { x.href = x.href.replace('zh.m.wikisource.org','zh.wikisource.org') }); [...document.querySelectorAll('a[href*="https://zh.m.wikipedia.org"]')].forEach(x=> { x.href = x.href.replace('zh.m.wikipedia.org','zh.wikipedia.org') }); })();