您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
当打开移动端网页时重新定向至桌面版网页
当前为
// ==UserScript== // @name 访问桌面版网页 // @namespace http://tampermonkey.net/ // @version 0.1 // @description 当打开移动端网页时重新定向至桌面版网页 // @author Dylan_Zhang // @match http://*/* // @match https://*/* // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // 获取当前网址 var currentUrl = window.location.href; // 检查网址中是否包含"/m."、"/mobile/"或".m." if (currentUrl.includes("/m.") || currentUrl.includes("/mobile/") || currentUrl.includes(".m.")) { // 替换"/m."、"/mobile/"和".m."为空字符串 currentUrl = currentUrl.replace("/m.", "/").replace("/mobile/", "/").replace(".m.", "."); // 重定向到修改后的网址 window.location.href = currentUrl; } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址