MCPcopy Create free account
hub / github.com/XIU2/UserScript / iframe

Function iframe

Lanzou-Enhanced.user.js:173–191  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

171
172 // 获取 iframe 框架
173 function iframe() {
174 mainframe = document.getElementById('mainframe');
175 if (mainframe) { // 只有找到 iframe 框架时才会继续运行脚本
176 mainframe = mainframe.contentWindow;
177 if (menu_value('menu_refreshCorrection')) refreshCorrection(); // 刷新不返回根目录(F5)
178 setTimeout(folderDescdes, 500); // 优化编辑框初始大小
179 setTimeout(hideSha, 500); // 隐藏分享链接窗口(这样自动打开/复制分享链接时,不会一闪而过)
180 fobiddenBack(); // 禁止浏览器返回(并绑定新的返回事件)
181 EventXMLHttpRequest(); // 监听 XMLHttpRequest 事件并执行 [自动显示更多文件]
182 setTimeout(clickOpenDirectory, 500); // 点击空白进入目录
183 setTimeout(backToTop, 2000); // 快捷返回上级(右键点击 网页右侧/下方 空白处)
184
185 dragEnter(); // 拖入文件自动显示上传框
186 setTimeout(viewTop,1000); // 监听并修改右键菜单 [外链分享地址] 为 [复制并打开分享链接] / [复制分享链接] / [打开分享链接] 之一
187 setTimeout(copyAllfileSha, 500); // 一键复制所有分享链接
188
189 setTimeout(filesSort, 300); // 文件排序
190 }
191 }
192
193
194 // 带密码的分享链接自动输密码

Callers 1

Calls 5

refreshCorrectionFunction · 0.85
fobiddenBackFunction · 0.85
EventXMLHttpRequestFunction · 0.85
dragEnterFunction · 0.85
menu_valueFunction · 0.70

Tested by

no test coverage detected