Greasy Fork is available in English.

谷歌搜索切换到桌面维基

谷歌搜索切换到桌面维基 (通过替换地址)

// ==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')
    });
})();