Skip to content

Commit 5f87987

Browse files
committed
新增 另一种[笔趣阁]模板 通用规则
1 parent bdb1fc5 commit 5f87987

2 files changed

Lines changed: 38 additions & 22 deletions

File tree

Autopage.user.js

Lines changed: 38 additions & 7 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.5.1
6+
// @version 5.5.2
77
// @author X.I.U
88
// @description ⭐无缝衔接下一页内容到网页底部(类似瀑布流)⭐,目前支持:【所有「Discuz!、Flarum、phpBB、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(以上仅一小部分,更多的写不下了...
99
// @description:zh-TW ⭐無縫銜接下一頁內容到網頁底部(類似瀑布流)⭐,支持各論壇、社交、遊戲、漫畫、小說、學術、搜索引擎(Google、Bing、Yahoo...) 等網站~
@@ -249,8 +249,12 @@
249249
console.info(`[自动无缝翻页] - 部分使用 WordPress 的网站 (下一页)`); return 108;
250250
}
251251
}
252-
} else if ((getCSS('meta[name="description" i][content*="小说"], meta[name="description" i][content*="章节"], meta[name="description" i][content*="阅读"]') || location.hostname.indexOf('biqu') > -1 || document.title.indexOf('笔趣阁') > -1) && getCSS('#content, .content, #chaptercontent, .chaptercontent, #BookText') && getXpath('//a[contains(text(), "下一章") or contains(text(), "下一页")]')) {
253-
console.info(`[自动无缝翻页] - <笔趣阁> 模板的小说网站`); return 200;
252+
} else if (getCSS('meta[name="description" i][content*="小说"], meta[name="description" i][content*="章节"], meta[name="description" i][content*="阅读"]') || location.hostname.indexOf('biqu') > -1 || document.title.indexOf('笔趣阁') > -1) {
253+
if (getCSS('#content, .content, #chaptercontent, .chaptercontent, #BookText') && getXpath('//a[contains(text(), "下一章") or contains(text(), "下一页")]')) {
254+
console.info(`[自动无缝翻页] - <笔趣阁 1> 模板的小说网站`); return 200;
255+
} else if (getCSS('#txt, .txt') && getCSS('#pb_next, .url_next') && getCSS('.chapter-control, .chapter-page-btn')) {
256+
console.info(`[自动无缝翻页] - <笔趣阁 2> 模板的小说网站`); return 201;
257+
}
254258
}
255259
return 0;
256260
}
@@ -292,8 +296,10 @@
292296
DBSite.wp_article.url('.nav-previous a'); break;
293297
case 108: // < 部分使用 WordPress 的网站 (下一页) >
294298
DBSite.wp_article.url('//*[self::ul or self::nav or self::div][@id="nav-below" or contains(@class, "navigation") or contains(@class, "pagination") or contains(@class, "pagenavi")]//a[contains(text(), "下一页") or contains(text(), ">") or contains(text(), "next") or contains(text(), "Next") or contains(text(), "NEXT")]'); break;
295-
case 200: // < 所有使用 笔趣阁 模板的小说网站 >
296-
DBSite.biquge.url(); break;
299+
case 200: // < 所有使用 笔趣阁 1 模板的小说网站 >
300+
curSite = DBSite.biquge; break;
301+
case 201: // < 所有使用 笔趣阁 2 模板的小说网站 >
302+
DBSite.biquge2.url(); break;
297303
}
298304
}
299305
}
@@ -605,8 +611,8 @@ function: {
605611
}
606612
}, // Wordpress 的 nav.navigation 规则
607613
biquge: {
608-
url: ()=> {if (indexOF(/\d+\/\d+\.html/)) {curSite = DBSite.biquge;}},
609-
style: 'img, .posterror {display: none !important;}',
614+
style: 'img, .posterror, a[href*="posterror()"], [style*="url("] {display: none !important;}',
615+
history: true,
610616
pager: {
611617
nextL: '//a[contains(text(), "下一章") or contains(text(), "下一页")]',
612618
pageE: '#content, .content, #chaptercontent, .chaptercontent, #BookText',
@@ -615,6 +621,31 @@ function: {
615621
replaceE: '//*[./a[contains(text(), "下一章") or contains(text(), "下一页")]]'
616622
}
617623
}, // 笔趣阁 模板的小说网站
624+
biquge2: {
625+
url: ()=> {if (isMobile() || getCSS('.chapter-page-btn')) {curSite = DBSite.biquge2_m;} else {curSite = DBSite.biquge2;}},
626+
style: 'img, .posterror, a[href*="posterror()"], [style*="url("], #txt > *:not(br) {display: none !important;}',
627+
history: true,
628+
pager: {
629+
type: 6,
630+
nextL: '#pb_next, .url_next',
631+
pageE: '#txt, .txt',
632+
insertP: ['#txt, .txt', 6],
633+
replaceE: '.chapter-control, .chapter-page-btn',
634+
loadTime: 1500,
635+
scrollD: 3500
636+
}
637+
}, // 笔趣阁 2 模板的小说网站
638+
biquge2_m: {
639+
style: 'img, .posterror, a[href*="posterror()"], [style*="url("], #txt > *:not(br) {display: none !important;}',
640+
history: true,
641+
pager: {
642+
nextL: '#pb_next, .url_next',
643+
pageE: '#txt, .txt',
644+
insertP: ['#txt, .txt', 6],
645+
replaceE: '.chapter-control, .chapter-page-btn',
646+
scrollD: 2000
647+
}
648+
}, // 笔趣阁 2 模板的小说网站
618649
baidu_tieba: {
619650
host: ['tieba.baidu.com', 'jump2.bdimg.com'],
620651
url: ()=> {if (location.hostname == 'jump2.bdimg.com') location.hostname = 'tieba.baidu.com';

other/Autopage/rules.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2861,21 +2861,6 @@
28612861
"replaceE": ".nav-bottom"
28622862
}
28632863
},
2864-
"笔趣阁 - whzh-xs.com": {
2865-
"host": "www.whzh-xs.com",
2866-
"url": "/\\d+\\/\\d+\\.html/",
2867-
"style": "a[href='javascript:posterror();'] {display: none !important;}",
2868-
"history": true,
2869-
"pager": {
2870-
"type": 6,
2871-
"nextL": "#pb_next",
2872-
"pageE": "#txt",
2873-
"insertP": ["#txt",6],
2874-
"replaceE": ".chapter-control",
2875-
"loadTime": 1500,
2876-
"scrollD": 3000
2877-
}
2878-
},
28792864
"铅笔小说": {
28802865
"host": "www.23qb.com",
28812866
"url": "if (fun.indexOF(/\\/book\\/\\d+\\/.+\\.html/)) {fun.xs_bF(fun.getAllCSS('#mlfy_main_text > *'), [/(继续下一页).+|铅笔小说.+/, '']); return true}",

0 commit comments

Comments
 (0)