您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
百度网盘转存窗口扩大,转存窗口出现前每隔0.5秒检测一次
// ==UserScript== // @name 百度网盘转存窗口扩大 // @namespace http://tampermonkey.net/ // @version 0.4 // @description 百度网盘转存窗口扩大,转存窗口出现前每隔0.5秒检测一次 // @author 卖女孩的小火柴 // @match https://pan.baidu.com/s/* // @icon https://pan.baidu.com/m-static/base/static/images/favicon.ico // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; var interval = setInterval(function() { if (document.getElementsByClassName("dialog-fileTreeDialog").length == 1) { console.log("发现转存文件树,修改大小位置"); document.getElementsByClassName("file-tree-container")[0].style.height = "700px"; document.getElementsByClassName("dialog-fileTreeDialog")[0].style.inset = "5% auto auto 25%"; clearInterval(interval); console.log("修改完成,结束循环"); } else { console.log("转存文件树尚未出现"); } }, 500) })();