From d116dcedab432f1014741a07e3c424052093c922 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sun, 21 May 2023 21:08:48 +0800 Subject: [PATCH 001/628] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E5=9C=A8=20Chrome?= =?UTF-8?q?+Violentmonkey=20=E4=B8=8B=E5=8F=AF=E8=83=BD=E4=B8=8D=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=20Raw=20=E5=8A=A0=E9=80=9F=E6=8C=89=E9=92=AE=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GithubEnhanced-High-Speed-Download.user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/GithubEnhanced-High-Speed-Download.user.js b/GithubEnhanced-High-Speed-Download.user.js index 5081ba349..ba4999f17 100644 --- a/GithubEnhanced-High-Speed-Download.user.js +++ b/GithubEnhanced-High-Speed-Download.user.js @@ -131,7 +131,7 @@ setTimeout(addDownloadZIP, 2000); // Download ZIP 加速 setTimeout(addGitClone, 2000); // Git Clone 加速 setTimeout(addGitCloneSSH, 2000); // Git Clone SSH 加速 - addRawFile(); // Raw 加速 + if (GM_info.scriptHandler === 'Tampermonkey') {addRawFile();} else {setTimeout(addRawFile, 1000);} // Raw 加速 setTimeout(addRawDownLink, 2000); // Raw 单文件快捷下载(☁),延迟 2 秒执行,避免被 pjax 刷掉 // Tampermonkey v4.11 版本添加的 onurlchange 事件 grant,可以监控 pjax 等网页的 URL 变化 @@ -142,7 +142,7 @@ setTimeout(addDownloadZIP, 2000); // Download ZIP 加速 setTimeout(addGitClone, 2000); // Git Clone 加速 setTimeout(addGitCloneSSH, 2000); // Git Clone SSH 加速 - addRawFile(); // Raw 加速 + if (GM_info.scriptHandler === 'Tampermonkey') {addRawFile();} else {setTimeout(addRawFile, 1000);} // Raw 加速 setTimeout(addRawDownLink, 2000); // Raw 单文件快捷下载(☁),延迟 2 秒执行,避免被 pjax 刷掉 setTimeout(addRawDownLink_, 1000); // 在浏览器返回/前进时重新添加 Raw 下载链接(☁)鼠标事件 }); @@ -406,7 +406,7 @@ return ret; })(history.replaceState); - window.addEventListener('popstate',()=>{ + window.addEventListener('popstate',()=>{ // 点击浏览器的前进/后退按钮时触发 urlchange 事件 window.dispatchEvent(new Event('urlchange')) }); } From cd6391152b8aaed3a19aa9cac630fec54bcbf5fd Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sun, 28 May 2023 10:41:31 +0800 Subject: [PATCH 002/628] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E5=9C=A8=E4=BC=9A?= =?UTF-8?q?=E5=91=98=E4=B8=93=E5=B1=9E=E6=A0=B7=E5=BC=8F=E7=9A=84=E5=88=86?= =?UTF-8?q?=E4=BA=AB=E9=93=BE=E6=8E=A5=E5=88=97=E8=A1=A8=E9=A1=B5=20[?= =?UTF-8?q?=E7=82=B9=E5=87=BB=E7=9B=B4=E6=8E=A5=E4=B8=8B=E8=BD=BD=E6=96=87?= =?UTF-8?q?=E4=BB=B6]=20=E5=A4=B1=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Lanzou-Enhanced.user.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Lanzou-Enhanced.user.js b/Lanzou-Enhanced.user.js index b59801eed..b4a74300f 100644 --- a/Lanzou-Enhanced.user.js +++ b/Lanzou-Enhanced.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 蓝奏云网盘增强 -// @version 1.5.0 +// @version 1.5.1 // @author X.I.U // @description 文件排序、刷新不回根目录、快捷返回上一级(右键网页空白处)、后退返回上一级、右键文件显示菜单、点击直接下载文件、点击空白进入目录、自动显示更多文件、一键复制所有分享链接、自定义分享链接域名、自动打开/复制分享链接、带密码的分享链接自动输密码、拖入文件自动显示上传框、输入密码后回车确认、调整描述(话说)编辑框初始大小 // @match *://lanzou.com/u @@ -293,9 +293,15 @@ if (!menu_value('menu_directDownload')) return if (document.getElementById('infos')) { document.getElementById('infos').addEventListener('click', function(e) { - if (e.target.tagName === 'A') { + if (e.target.tagName === 'A') { // 针对普通样式的分享链接列表页 e.preventDefault(); // 阻止默认打开链接事件 GM_openInTab(e.target.href + '#download', {active: false, insert: true, setParent: true}); // 后台打开 + } else { // 针对会员专属样式的分享链接列表页 + const link = e.target.closest('a'); // 点击 元素的子元素时,寻找最近的 父元素 + if ((link && this.contains(link))) { + e.preventDefault(); // 阻止默认打开链接事件 + GM_openInTab(link.href + '#download', {active: false, insert: true, setParent: true}); // 后台打开 + } } }); } @@ -304,7 +310,7 @@ function directDownload_() { if (!menu_value('menu_directDownload')) return if (location.hash != '#download') return - let iframe = document.querySelector('iframe.ifr2'); + let iframe = document.querySelector('iframe.ifr2, iframe.n_downlink'); if (iframe) { // 只有找到 iframe 框架时才会继续运行脚本 iframe = iframe.contentWindow; let timer = setInterval(function(){ From d1b9b96d036ebd5c4d3b0a3b80b77b8478b1f1f3 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Wed, 31 May 2023 16:42:54 +0800 Subject: [PATCH 003/628] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20[Github=20-=20Rele?= =?UTF-8?q?ases]=20=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- other/Autopage/rules.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index ee9080672..285795b92 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -4717,7 +4717,7 @@ "url": "return (fun.indexOF(/\\/(issues|pulls|discussions|releases)$/) || fun.indexOF('/discussions/categories') || fun.indexOF(/\\/actions($|\\/workflows)/) || fun.indexOF(/^\\/orgs\\/.+\\/repositories/))", "pager": { "nextL": "a.next_page", - "pageE": "div[id^='issue_'], ul[aria-labelledby='discussions-list']>li, #repo-content-pjax-container>div>div[data-pjax]>section, div[id^='check_suite_'], #org-repositories li.Box-row", + "pageE": "div[id^='issue_'], ul[aria-labelledby='discussions-list']>li, #release_page_title+div[data-pjax]>section, div[id^='check_suite_'], #org-repositories li.Box-row", "replaceE": ".pagination", "scrollD": 2500 } From cbf81bc91cd2c8bd19a5078785c8f621659ca7dc Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Thu, 1 Jun 2023 22:36:07 +0800 Subject: [PATCH 004/628] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E7=BF=BB=E9=A1=B5=E8=A7=84=E5=88=99=E5=8F=AF=E7=9C=81?= =?UTF-8?q?=E7=95=A5=20replaceE=EF=BC=8C=E5=8D=B3=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E6=9B=BF=E6=8D=A2=20nextL=20=E5=85=83=E7=B4=A0;=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=20[Discuz!=20-=20=E5=BD=92=E6=A1=A3=E9=A1=B5]=20?= =?UTF-8?q?=E5=8C=B9=E9=85=8D=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 94640a906..b694d9230 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -3,7 +3,7 @@ // @name:zh-CN 自动无缝翻页 // @name:zh-TW 自動無縫翻頁 // @name:en AutoPager -// @version 6.4.24 +// @version 6.4.25 // @author X.I.U // @description ⭐无缝加载 下一页内容 至网页底部(类似瀑布流)⭐,目前支持:【所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、NexusPHP...」论坛】【百度、谷歌(Google)、必应(Bing)、搜狗、微信、360、Yahoo、Yandex 等搜索引擎...】、贴吧、豆瓣、知乎、B 站(bilibili)、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...) 等網站~ @@ -495,7 +495,7 @@ pager: { 当 pageE: '.item' 且 insertP: ['.page', 1] 时,实际等同于 ['.item', 5] 注意:如 pageE 中选择了多类元素,则不能省略 insertP(比如包含 `,` 与 `|` 符号),除非另外的选择器是