您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
目前只匹配了豆瓣,微博和贴吧
// ==UserScript== // @name Google搜索的网页手机版转电脑版 // @namespace http://tampermonkey.net/ // @version 2025-02-25.1 // @description 目前只匹配了豆瓣,微博和贴吧 // @author leone // @match https://m.douban.com/* // @match https://m.weibo.cn/* // @match https://waptieba.baidu.com/* // @license GPL-3.0 License // @grant none // ==/UserScript== (function() { if (document.URL.includes('m.douban.com')) { window.location.replace(document.URL.replace(/https:\/\/(.*?)\.(.*)/, 'https://www.$2')); } else if (document.URL.includes('m.weibo.cn')) { window.location.replace(document.URL.replace(/https:\/\/(.*?)\.(.*?)\.cn(.*)/, 'https://www.$2.com$3')); } else if (document.URL.includes('waptieba.baidu.com')) { window.location.replace(document.URL.replace(/https:\/\/wap(.*)/, 'https://$1')); } })();