Skip to content

Commit b980d19

Browse files
committed
优化 [部分使用 WordPress 的网站] 通用规则匹配条件
1 parent c24273d commit b980d19

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Autopage.user.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@
278278
} else if (loadMoreExclude(loadMoreExclude2) && getAllXpath('//*[self::a or self::span or self::button or self::div][text()="加载更多"][not(@href) or @href="#" or starts-with(@href, "javascript")]').length === 1) {
279279
console.info(`[自动无缝翻页] - 部分自带 自动无缝翻页 的网站 2`); return 9;
280280

281-
} else if (getCSS('link[href*="/wp-content/" i], script[src*="/wp-content/" i]')) {
281+
} else if (getCSS('link[href*="/wp-content/" i], script[src*="/wp-content/" i], head>meta[name=generator][content*="WordPress" i]')) {
282282

283283
//if (getAllCSS('article[class], div[id^="post-"], ul[class*="post"]>li.item, .post').length < 4 || getCSS('#nav-below, nav.navigation, nav.paging-navigation, .pagination, .wp-pagenavi, .pagenavi')) return 0;
284284

0 commit comments

Comments
 (0)