|
1 | 1 | // ==UserScript== |
2 | 2 | // @name 蓝奏云网盘增强 |
3 | | -// @version 1.3.8 |
| 3 | +// @version 1.3.9 |
4 | 4 | // @author X.I.U |
5 | 5 | // @description 刷新不回根目录、后退返回上一级、右键文件显示菜单、点击直接下载文件、点击空白进入目录、自动显示更多文件、自定义分享链接域名、自动打开/复制分享链接、带密码的分享链接自动输密码、拖入文件自动显示上传框、输入密码后回车确认、调整描述(话说)编辑框初始大小 |
6 | 6 | // @include /^https:\/\/.+\.lanzou[a-z]\.com\/.*$/ |
|
38 | 38 | ['menu_copy_fileSha', '自动复制分享链接', '自动复制分享链接', true], |
39 | 39 | ['menu_refreshCorrection', '刷新不返回根目录', '刷新不返回根目录', true], |
40 | 40 | ['menu_rightClickMenu', '右键文件显示菜单', '右键文件显示菜单', true], |
41 | | - ['menu_directDownload', '点击直接下载文件', '点击直接下载文件', true], |
| 41 | + ['menu_directDownload', '点击直接下载文件 (分享链接列表页)', '点击直接下载文件', true], |
42 | 42 | ['menu_folderDescdesMenu', '调整描述(话说)编辑框大小', '调整描述(话说)编辑框大小', true] |
43 | 43 | ], menu_ID = [], lastFolderID; |
44 | 44 | for (let i=0;i<menu_ALL.length;i++){ // 如果读取到的值为 null 就写入默认值 |
|
287 | 287 | window.top.close(); // 关闭该后台标签页 |
288 | 288 | clearInterval(timer); |
289 | 289 | } |
290 | | - }, 1); |
| 290 | + }, 10); |
291 | 291 | } |
292 | 292 | } |
293 | 293 |
|
|
358 | 358 | // 复制分享链接(并已复制的提示信息) |
359 | 359 | if (menu_value('menu_copy_fileSha')) {f_sha.style.display = 'none';GM_setClipboard(f_sha1.textContent, 'text');GM_notification({text: '已复制分享链接~', timeout: 2000});} |
360 | 360 | // 直接下载文件 |
361 | | - if (menu_value('menu_directDownload')) {f_sha.style.display = 'none';GM_openInTab(f_sha1.textContent + '#download', {active: false,insert: true,setParent: true});} |
| 361 | + //if (menu_value('menu_directDownload')) {f_sha.style.display = 'none';GM_openInTab(f_sha1.textContent + '#download', {active: false,insert: true,setParent: true});} |
362 | 362 | } |
363 | 363 | } |
364 | 364 | } |
|
449 | 449 | for (const target of mutation.addedNodes) { |
450 | 450 | if (target.nodeType != 1) return |
451 | 451 | if (target.className === 'f_view') { |
| 452 | + //console.log(target) |
452 | 453 | let f_viewtop = target.querySelector('.f_viewtop'); |
453 | 454 | if (f_viewtop && f_viewtop.textContent === '外链分享地址') { |
454 | 455 | if (menu_value('menu_open_fileSha') && menu_value('menu_copy_fileSha')) { |
|
0 commit comments