Skip to content

Commit ce9a1bd

Browse files
committed
优化 [部分 Typecho 网站] 通用规则
1 parent 5c56cc0 commit ce9a1bd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Autopage.user.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,9 @@
326326
}
327327
if (DBSite.wp_article.pager.pageE != undefined) {console.info(`[自动无缝翻页] - 部分使用 WordPress 的网站`); return 10;}
328328
}
329-
} else if (getCSS('meta[name="template" i][content="handsome" i]')) {
329+
} else if (getCSS('meta[name="template" i][content="handsome" i]') && getCSS('li.next>a')) {
330330
console.info(`[自动无缝翻页] - 部分使用 Typecho 的网站 (handsome)`); return 12;
331-
} else if (getCSS('meta[name="template" i][content="Mirages" i]')) {
331+
} else if (getCSS('meta[name="template" i][content="Mirages" i]') && getCSS('li.next>a')) {
332332
console.info(`[自动无缝翻页] - 部分使用 Typecho 的网站 (Mirages)`); return 13;
333333

334334
} else if (getCSS('.stui-page, .stui-page__item') && getCSS('li.active.hidden-xs+li.hidden-xs>a') && getCSS('.stui-vodlist')) {
@@ -512,15 +512,15 @@ function: {
512512
typecho_handsome: {
513513
blank: 3,
514514
pager: {
515-
nextL: 'li.next > a',
515+
nextL: 'li.next>a',
516516
pageE: '.blog-post, .post-list',
517517
replaceE: '.page-navigator'
518518
}
519519
}, // 部分使用 Typecho 的网站 (handsome)
520520
typecho_mirages: {
521521
blank: 3,
522522
pager: {
523-
nextL: 'li.next > a',
523+
nextL: 'li.next>a',
524524
pageE: '#index>article, #archive>article',
525525
scriptT: 3,
526526
replaceE: '.page-navigator'

0 commit comments

Comments
 (0)