From 551fe6131de6ebe8760f1fe186d176cef35fad26 Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Mon, 21 Nov 2022 09:59:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[Discuz!=20-=20=E5=BD=92?= =?UTF-8?q?=E6=A1=A3=E9=A1=B5]=20=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index f1afdd0..f72a274 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -3,7 +3,7 @@ // @name:zh-CN 自动无缝翻页 // @name:zh-TW 自動無縫翻頁 // @name:en AutoPager -// @version 6.3.13 +// @version 6.4.0 // @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...) 等網站~ @@ -100,8 +100,8 @@ 'https://github.moeyy.xyz/https://raw.githubusercontent.com/XIU2/UserScript/master/other/Autopage/rules.json', 'https://cdn.staticaly.com/gh/XIU2/UserScript/master/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://raw.githubusercontents.com/XIU2/UserScript/master/other/Autopage/rules.json' + 'https://fastly.jsdelivr.net/gh/XIU2/UserScript/other/Autopage/rules.json', + 'https://raw.githubusercontents.com/XIU2/UserScript/master/other/Autopage/rules.json' ], urlArr2 = [ 'https://userscript.gh2233.ml/other/Autopage/rules.json', 'https://userscript.xiu2.xyz/other/Autopage/rules.json', @@ -708,6 +708,12 @@ function: { forceHTTPS: true } }, // Discuz! 论坛 - 淘帖页 + discuz_archiver: { + pager: { + nextL: '//div[@id="content"][last()]//div[@class="page"]/strong/following-sibling::a[1]', + pageE: '#content' + } + }, // Discuz! 论坛 - 归档页 discuz_m: { thread: true, pager: { @@ -1339,6 +1345,8 @@ function: { curSite = DBSite.discuz_thread; } } + } else if (indexOF('/archiver/')) { // < 归档页 > + curSite = DBSite.discuz_archiver; } } // 如果上面没有匹配的则继续