- 运行环境:PC-windows操作系统
- 软件语言:简体中文|授权方式:
- 软件类型:国产软件 - 源码模版 - 插件辅助
- 软件大小:1.00 KB
- 下载星级:
- 软件官网:暂无
- 更新时间:2018/4/3 14:47:35
【软件截图】

【基本介绍】
百度云跳转到文件程序脚本js插件(应用程序接口程序)(百度云跳转到文件脚本)是由作者kirikiri分享的一个浏览器扩展插件。 这是专为经常使用百度网盘(网络net硬盘)用户提供, 插件脚本, 可以能够跳转到文件所就在详细位置。 // ==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);
}
});
})();