您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
跳转到文件所在位置
// ==UserScript== // @name 百度云跳转到文件 // @namespace http://tampermonkey.net/ // @version 0.2.2 // @description 跳转到文件所在位置 // @author kiki // @match https://pan.baidu.com/disk/home* // @grant none // @require https://code.jquery.com/jquery-latest.js // ==/UserScript== (function() { 'use strict'; $('[data-button-id="b33"]').parent().append("<span class='g-button'><span class='g-button-right' id='jump'>跳转</span></span>"); $('#jump').on("click",function(){ var top = $(".dir-small:last").offset().top; if(top>600 || top<0){ $(".dir-small").parent().parent().parent().animate({ scrollTop: top-$(".dir-small:first").offset().top+90 }, 500); }else if(top<600 && top>0){ $(".dir-small").parent().parent().parent().animate({ scrollTop: $(".dir-small:first").offset().top }, 500); } }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址