File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// ==UserScript==
22// @name 蓝奏云网盘增强
3- // @version 1.2.2
3+ // @version 1.2.3
44// @author X.I.U
5- // @description 刷新不回根目录、后退返回上一级、右键文件显示菜单、自动显示更多文件、自动打开分享链接、自动复制分享链接、拖入文件自动显示上传框、调整描述(话说)编辑框初始大小
5+ // @description 刷新不回根目录、后退返回上一级、右键文件显示菜单、自动显示更多文件、自动打开分享链接、自动复制分享链接、拖入文件自动显示上传框、输入密码后回车确认、 调整描述(话说)编辑框初始大小
66// @match *://*.lanzous.com/*
77// @match *://*.lanzoux.com/*
88// @match *://*.lanzoui.com/*
8282 }
8383
8484
85- if ( document . getElementById ( "infos" ) ) { // 分享链接文件列表页
85+ if ( document . getElementById ( "infos" ) ) { // 分享链接文件列表页
86+ if ( document . getElementById ( "pwdload" ) ) { // 分享链接输入密码页
87+ enterToPass ( ) ; // 输入密码后回车确认
88+ }
8689 setTimeout ( fileMoreS , 300 ) ; // 自动显示更多文件
87- } else if ( document . querySelector ( "iframe.ifr2" ) ) { // 分享链接文件下载页(暂时没有这方面的功能,先空着)
90+ } else if ( document . querySelector ( "iframe.ifr2" ) ) { // 分享链接文件下载页(暂时没有这方面的功能,先空着)
8891 //console.log()
89- } else if ( document . getElementById ( "mainframe" ) || window . top . location . href . indexOf ( "mydisk.php?" ) > - 1 ) { // 后台页
90- if ( window . top . location . href != "https://pc.woozooo.com/mydisk.php" ) {
92+ } else if ( document . getElementById ( "mainframe" ) || window . top . location . href . indexOf ( "mydisk.php?" ) > - 1 ) { // 后台页
93+ if ( window . top . location . href != "https://pc.woozooo.com/mydisk.php" ) {
9194 window . top . location . href = "https://pc.woozooo.com/mydisk.php"
9295 }
9396 var mainframe ;
326329 }
327330
328331
332+ // 输入密码后回车确认
333+ function enterToPass ( ) {
334+ document . getElementById ( 'pwd' ) . onkeydown = function ( e ) {
335+ if ( e . keyCode == 13 ) {
336+ document . getElementById ( 'sub' ) . click ( ) ;
337+ }
338+ } ;
339+ }
340+
341+
329342 // 定时执行(旧方法,每隔 100ms 执行一次,比较笨且浪费一丢丢性能,但优点是不会漏掉且反应更快)
330343 //setInterval(fileMore,100);
331344
You can’t perform that action at this time.
0 commit comments