From 0280c619ff9e7d6035c007b1ef60496391d5189b Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sun, 17 Apr 2022 14:50:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[Discuz!]=20=E9=80=9A?= =?UTF-8?q?=E7=94=A8=E8=A7=84=E5=88=99;=20=E8=A1=A5=E5=85=85=20[t66y]=20?= =?UTF-8?q?=E5=85=B6=E4=BB=96=E5=9F=9F=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 12 ++++++------ other/Autopage/rules.json | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 08e730b..438a303 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -3,7 +3,7 @@ // @name:zh-CN 自动无缝翻页 // @name:zh-TW 自動無縫翻頁 // @name:en AutoPager -// @version 5.8.1 +// @version 5.8.2 // @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...) 等網站~ @@ -552,7 +552,7 @@ function: { discuz_guide: { pager: { nextL: 'a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])', - pageE: 'id("threadlist")//table[./tbody[contains(@id, "normalthread_")]]/tbody[not(@id="separatorline")]', + pageE: 'tbody[id^="normalthread_"]', replaceE: '.pg, .pages', forceHTTPS: true } @@ -567,10 +567,10 @@ function: { }, // Discuz! 论坛 - 图片模式的帖子列表(不带无缝加载下一页按钮的) discuz_thread: { thread: true, - style: '.pgbtn {display: none;}', + style: '.pgbtn, .viewthread:not(:first-of-type)>h1, .viewthread:not(:first-of-type)>ins, .viewthread:not(:first-of-type)>.headactions {display: none;}', pager: { nextL: 'a.nxt:not([href^="javascript"]) ,a.next:not([href^="javascript"])', - pageE: '#postlist > div[id^="post_"]', + pageE: '#postlist > div[id^="post_"], form>.viewthread', replaceE: '//div[contains(@class,"pg") or contains(@class,"pages")][./a[contains(@class,"nxt") or contains(@class,"next") or contains(@class,"prev")][not(contains(@href,"javascript") or contains(@href,"commentmore"))]]', forceHTTPS: true }, @@ -1219,9 +1219,9 @@ function: { curSite = DBSite.discuz_youspace; } else if (indexOF('mod=collection', 's')) { // < 淘贴列表 > curSite = DBSite.discuz_collection; - } else if (getCSS('#threadlist')) { // < 部分论坛的各板块 URL 是自定义的 > + } else if (getCSS('#threadlist, tbody[id^="normalthread_"]')) { // < 部分论坛的各板块 URL 是自定义的 > discuzForum(); - } else if (getCSS('#postlist')) { // < 部分论坛的帖子内 URL 是自定义的 > + } else if (getCSS('#postlist, form>.viewthread')) { // < 部分论坛的帖子内 URL 是自定义的 > curSite = DBSite.discuz_thread; } else if (isMobile()) { // 手机版判断 discuzForum('m'); diff --git a/other/Autopage/rules.json b/other/Autopage/rules.json index 82e8b19..d6ed877 100644 --- a/other/Autopage/rules.json +++ b/other/Autopage/rules.json @@ -5247,7 +5247,7 @@ } }, "t66y - 帖子列表": { - "host": "www.t66y.com", + "host": ["t66y.com","www.t66y.com"], "url": "/^\\/thread/", "pager": { "nextL": "//div[@class='pages']/a[text()='下一頁']", @@ -5257,7 +5257,7 @@ } }, "t66y - 帖子内": { - "host": "www.t66y.com", + "host": ["t66y.com","www.t66y.com"], "url": "/^\\/(read\\.php|htm_data|htm_mob)/", "style": ".tips {display: none !important;}", "thread": true,