您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
检测到ai助手,自动跳转回旧版网页
// ==UserScript== // @name 百度网盘回到旧版 // @namespace https://github.com/jqtmviyu/UserScripts // @match https://pan.baidu.com/disk/main* // @version 0.3 // @author jqtmviyu // @description 检测到ai助手,自动跳转回旧版网页 // ==/UserScript== function redirectToHomeWithPath() { // 旧版网页的回收站/分享用不了,排除掉 if (/^#\/(recyclebin|share)/.test(window.location.hash)) { return; // 如果匹配任一前缀,则退出脚本 } // 获取当前页面的 URL const currentUrl = window.location.href // 使用 URL 构造函数解析当前 URL const url = new URL(currentUrl) // 获取 path 参数 const pathParam = url.searchParams.get('path') // 构建新的 URL const newUrl = `https://pan.baidu.com/disk/home?from=newversion&stayAtHome=true#/all?path=${encodeURIComponent( pathParam )}&vmode=list` // 重定向到新的 URL window.location.href = newUrl } // 调用 redirectToHomeWithPath()