Skip to content

Commit 5cb53b1

Browse files
committed
优化 各个论坛通用规则识别方式
1 parent b52ffab commit 5cb53b1

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Autopage.user.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @name:zh-CN 自动无缝翻页
44
// @name:zh-TW 自動無縫翻頁
55
// @name:en AutoPager
6-
// @version 5.3.9
6+
// @version 5.4.0
77
// @author X.I.U
88
// @description ⭐无缝衔接下一页内容到网页底部(类似瀑布流)⭐,目前支持:【所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、NexusPHP...」论坛】【百度、谷歌(Google)、必应(Bing)、搜狗、微信、360、Yahoo、Yandex 等搜索引擎...】、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、煎蛋网、龙的天空、起点中文、千图网、千库网、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(以上仅一小部分,更多的写不下了...
99
// @description:zh-TW ⭐無縫銜接下一頁內容到網頁底部(類似瀑布流)⭐,支持各論壇、社交、遊戲、漫畫、小說、學術、搜索引擎(Google、Bing、Yahoo...) 等網站~
@@ -201,15 +201,16 @@
201201
}
202202
}
203203
}
204+
204205
if (support) {
205206
console.info('[自动无缝翻页] - 独立规则 网站'); return 1;
206207
} else if (self != top) {
207208
return -1;
208209
} else if (typeof discuz_uid != 'undefined') {
209210
console.info(`[自动无缝翻页] - <Discuz!> 论坛`); return 2;
210-
} else if (typeof flarum != 'undefined') {
211+
} else if (typeof flarum != 'undefined' || getCSS('#flarum-loading')) {
211212
console.info(`[自动无缝翻页] - <Flarum> 论坛`); return 3;
212-
} else if (typeof phpbb != 'undefined') {
213+
} else if (typeof phpbb != 'undefined' || getCSS('body#phpbb')) {
213214
console.info(`[自动无缝翻页] - <phpBB> 论坛`); return 4;
214215
} else if (typeof xn != 'undefined' && getXpath('//footer//a[contains(string(), "Xiuno")] | //link[contains(@href, "xiuno")] | //script[contains(@src, "xiuno")]')) {
215216
console.info(`[自动无缝翻页] - <Xiuno> 论坛`); return 5;

0 commit comments

Comments
 (0)