优化 [部分 自带无缝翻页 网站] 通用规则

This commit is contained in:
xiu2
2022-04-11 13:15:25 +08:00
parent d0603a3285
commit 779c9a07e6
+2 -2
View File
@@ -256,7 +256,7 @@
} else if (getAllCSS('.load-more, .loadmore, #load-more, #loadmore, .show_more').length === 1) {
console.info(`[自动无缝翻页] - 部分自带 自动无缝翻页 的网站 1`); return 8;
} else if (getAllXpath('//*[@onclick][text()="加载更多" or text()="查看更多"][not(@href) or @href="#" or starts-with(@href, "javascript")]').length === 1) {
} else if (getAllXpath('//*[text()="加载更多" or text()="查看更多"][not(@href) or @href="#" or starts-with(@href, "javascript")]').length === 1) {
console.info(`[自动无缝翻页] - 部分自带 自动无缝翻页 的网站 2`); return 9;
} else if (getCSS('link[href*="/wp-content/" i], script[src*="/wp-content/" i]')) {
@@ -314,7 +314,7 @@
case 8: // < 部分自带 自动无缝翻页 的网站 1 >
DBSite.loadmore.url('.load-more, .loadmore, #load-more, #loadmore, .show_more'); break;
case 9: // < 部分自带 自动无缝翻页 的网站 2 >
DBSite.loadmore.url('//*[@onclick][text()="加载更多" or text()="查看更多"][not(@href) or @href="#" or starts-with(@href, "javascript")]'); break;
DBSite.loadmore.url('//*[text()="加载更多" or text()="查看更多"][not(@href) or @href="#" or starts-with(@href, "javascript")]'); break;
case 100: // < 部分使用 WordPress 的网站 (a.next) >
DBSite.wp_article.url('a.next, a.next-page'); break;
case 101: // < 部分使用 WordPress 的网站 (a[rel="next"]) >