From 6188f73b46300529031458f1614af49056272e64 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Fri, 20 Sep 2024 11:06:14 +0800 Subject: [PATCH 001/356] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E5=B8=A6?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E7=9A=84=E5=88=86=E4=BA=AB=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E8=BE=93=E5=AF=86=E7=A0=81]=20=E5=AF=B9=20`?= =?UTF-8?q?=3Fpwd=3D`=20=E5=92=8C=20`=3Fpasswd=3D`=20=E7=9A=84=E6=94=AF?= =?UTF-8?q?=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Lanzou-Enhanced.user.js | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/Lanzou-Enhanced.user.js b/Lanzou-Enhanced.user.js index e3cbabfde..f0a30b9ef 100644 --- a/Lanzou-Enhanced.user.js +++ b/Lanzou-Enhanced.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 蓝奏云网盘增强 -// @version 1.5.5 +// @version 1.5.6 // @author X.I.U // @description 文件排序、刷新不回根目录、快捷返回上一级(右键网页空白处)、后退返回上一级、右键文件显示菜单、点击直接下载文件、点击空白进入目录、自动显示更多文件、一键复制所有分享链接、自定义分享链接域名、自动打开/复制分享链接、带密码的分享链接自动输密码、拖入文件自动显示上传框、输入密码后回车确认、优化编辑框初始大小 // @match *://lanzou.com/u @@ -148,6 +148,7 @@ if (window.top.location.pathname === '/u' || window.top.location.pathname.indexOf('account.php') > -1 || window.top.location.pathname.indexOf('mydisk.php') > -1) { // 后台页 if (window.top.location.href != 'https://pc.woozooo.com/mydisk.php') window.top.location.href = 'https://pc.woozooo.com/mydisk.php'; + RememberLoginStatus() // 通过延长 cookie 到期时间来一直记住登录状态 var mainframe; iframe(); } else if (window.top.location.pathname.indexOf('%') > -1) { // > 带密码的分享链接页面 @@ -197,16 +198,16 @@ shareLink = location.origin + shareLink[0] let password = location.pathname.replace('%E5%AF%86%E7%A0%81',':').replace(/%([A-Z]|[0-9]){2}/ig, '').split(':') if (password.length > 0) { - location.replace(shareLink + '?password=' + password[password.length - 1]) + location.replace(shareLink + '?pwd=' + password[password.length - 1]) } } } } - // 自动输入密码(仅支持访问 带密码的分享链接 时) + // 自动输入密码(仅支持访问 带密码的分享链接 时,比如上面 [带密码的分享链接自动输密码] 功能重定向后的链接) function enterPassword() { - if (location.search.indexOf('?password=') > -1) { + if (location.search.indexOf('?pwd=') > -1 || location.search.indexOf('?passwd=') > -1 || location.search.indexOf('?password=') > -1) { let password = location.search.split('=') if (password.length > 0) { document.getElementById('pwd').value = password[password.length - 1] @@ -624,6 +625,24 @@ observer.observe(mainframe.document, { childList: true, subtree: true }); } + // 通过延长 cookie 到期时间来一直记住登录状态 + function RememberLoginStatus() { + // 获取 Cookie + function getCookie(name) { + if (!name) return '' + let arr = document.cookie.split(';'); + name += '='; + for (let i=0; i Date: Fri, 20 Sep 2024 11:43:55 +0800 Subject: [PATCH 002/356] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[steamrip]=20?= =?UTF-8?q?=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other/Autopage/rules.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index af5031cc1..b68aa3fab 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -2104,6 +2104,16 @@ "replaceE": ".bottom-page" } }, + "steamrip": { + "host": "steamrip.com", + "url": "return fun.isPager()", + "blank": 3, + "pager": { + "nextL": "a.next.page-numbers,li.the-next-page>a", + "pageE": "li.post-item,.post-element", + "replaceE": ".pages-numbers" + } + }, "GBAtemp - 帖子内": { "host": "gbatemp.net", "url": "/^\\/threads\\//", From c032db59e330f81ccb05588fb481555db0367478 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Fri, 20 Sep 2024 11:44:10 +0800 Subject: [PATCH 003/356] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E5=A6=82?= =?UTF-8?q?=E6=BC=AB=E7=94=BB]=20=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other/Autopage/rules.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index b68aa3fab..589f35275 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -3111,6 +3111,16 @@ "replaceE": ".uk-pagination" } }, + "如漫画": { + "host": "www.rumanhua.com", + "url": "return fun.isPager('n')", + "pager": { + "type": 6, + "nextL": ".main_control>a", + "pageE": ".chapter-img-box", + "replaceE": ".main_control" + } + }, "漫画星球 / 6 漫画": { "host": ["/\\.mhxqiu/","/^www\\.sixmh\\d\\./"], "url": "if (fun.indexOF(/\\/\\d+\\.html/)) {return true;} else if (fun.indexOF(/\\/\\d+\\/$/)) {setTimeout(()=>{if (document.getElementById('zhankai')) document.getElementById('zhankai').click();},500);}", From 00deccb154ebf18c5b59204f1665caa41a6729d0 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Tue, 24 Sep 2024 11:56:23 +0800 Subject: [PATCH 004/356] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=E5=A4=96=E7=BD=AE?= =?UTF-8?q?=E7=BF=BB=E9=A1=B5=E8=A7=84=E5=88=99=E5=88=86=E6=B5=81=E5=9C=B0?= =?UTF-8?q?=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 5473c4b72..9ba9e05a3 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -3,7 +3,7 @@ // @name:zh-CN 自动无缝翻页 // @name:zh-TW 自動無縫翻頁 // @name:en AutoPager -// @version 6.6.32 +// @version 6.6.33 // @author X.I.U // @description ⭐无缝加载 下一页内容 至网页底部(类似瀑布流,无限滚动,无需手动点击下一页)⭐,目前支持:【所有「Discuz!、Flarum、phpBB、MyBB、Xiuno、XenForo、NexusPHP...」论坛】【百度、谷歌(Google)、必应(Bing)、搜狗、微信、360、Yahoo、Yandex 等搜索引擎...】、贴吧、豆瓣、知乎、NGA、V2EX、起点中文、千图网、千库网、Pixabay、Pixiv、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、RuTracker、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、小众软件、【动漫狂、动漫屋、漫画猫、漫画屋、漫画 DB、HiComic、Mangabz、Xmanhua 等漫画网站...】、PubMed、Z-Library、GreasyFork、Github、StackOverflow(以上仅一小部分常见网站,更多的写不下了... // @description:zh-TW ⭐無縫加載 下一頁內容 至網頁底部(類似瀑布流,无限滚动,無需手働點擊下一頁)⭐,支持各論壇、社交、遊戲、漫畫、小說、學術、搜索引擎(Google、Bing、Yahoo...) 等網站~ @@ -14,7 +14,6 @@ // @connect userscript.h233.eu.org // @connect bitbucket.org // @connect js.cdn.haah.net -// @connect jsdelivr.b-cdn.net // @connect raw.ixnic.net // @connect raw.nuaa.cf // @connect raw.yzuu.cf @@ -109,7 +108,6 @@ 'https://jsd.onmicrosoft.cn/gh/XIU2/UserScript/other/Autopage/rules.json', //'https://gcore.jsdelivr.net/gh/XIU2/UserScript/other/Autopage/rules.json', 'https://fastly.jsdelivr.net/gh/XIU2/UserScript/other/Autopage/rules.json', - 'https://jsdelivr.b-cdn.net/gh/XIU2/UserScript/other/Autopage/rules.json', 'https://cdn.jsdmirror.com/gh/XIU2/UserScript/other/Autopage/rules.json', 'https://jsd.proxy.aks.moe/gh/XIU2/UserScript/other/Autopage/rules.json', 'https://jsdelivr.pai233.top/gh/XIU2/UserScript/other/Autopage/rules.json', @@ -504,12 +502,12 @@ pager: { nextText: 按钮文本,当按钮文本 = 该文本时,才会点击按钮加载下一页(避免一瞬间加载太多次下一页,下同) nextTextOf: 按钮文本的一部分,当按钮文本包含该文本时,才会点击按钮加载下一页 nextHTML: 按钮内元素,当按钮内元素 = 该元素内容时,才会点击按钮加载下一页 - interval: 点击间隔时间,对于没有按钮文字变化的按钮,可以手动指定间隔时间(单位 ms,默认 500,当指定上面三个时,会忽略 interval) + interval: 点击间隔时间,对于没有按钮文字变化的按钮,可以手动指定间隔时间(省略后默认 500ms,当指定上面三个时,会忽略 interval) isHidden: 只有下一页按钮可见时(没有被隐藏),才会点击 3 = 依靠 [基准元素] 与 [浏览器可视区域底部] 之间的距离缩小来触发翻页(适用于:主体元素下方内容太多 且 高度不固定时) scrollE: 作为基准线的元素(一般为底部页码元素),和 replaceE 一样的话可以省略 - scrollD: 基准元素 - 可视区域底部 + scrollD: 当 [基准元素] 与 [可视区域底部] 之间的距离 等于或小于该值时,将触发翻页,省略后默认 2000 4 = 动态加载类网站(适用于:简单的动态加载内容网站) insertE: 用来插入元素的函数 @@ -519,7 +517,7 @@ pager: { iframe: 这个必须加到 pager{} 外面(这样才会在该域名的 iframe 框架下运行脚本) 6 = 通过 iframe 获取下一页动态加载内容插入本页,只有一个娃(适用于:部分动态加载内容的网站,与上面不同的是,该模式适合简单的网页,没有复杂事件什么的) - loadTime: 预留的网页加载时间,确保网页内容加载完成 + loadTime: 预留的网页加载时间,确保网页内容加载完成(省略后默认为 300ms) nextL: 下一页链接所在元素 pageE: 要从下一页获取的元素 @@ -537,7 +535,7 @@ pager: { 注意:如 pageE 中选择了多类元素,则不能省略 insertP(比如包含 `,` 与 `|` 符号),除非另外的选择器是