From ce9a1bd68e99dcb6c95147d10fcae9c8fc33858f Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Sun, 3 Jul 2022 12:09:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E9=83=A8=E5=88=86=20Type?= =?UTF-8?q?cho=20=E7=BD=91=E7=AB=99]=20=E9=80=9A=E7=94=A8=E8=A7=84?= =?UTF-8?q?=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 17195fc..1faa422 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -326,9 +326,9 @@ } if (DBSite.wp_article.pager.pageE != undefined) {console.info(`[自动无缝翻页] - 部分使用 WordPress 的网站`); return 10;} } - } else if (getCSS('meta[name="template" i][content="handsome" i]')) { + } else if (getCSS('meta[name="template" i][content="handsome" i]') && getCSS('li.next>a')) { console.info(`[自动无缝翻页] - 部分使用 Typecho 的网站 (handsome)`); return 12; - } else if (getCSS('meta[name="template" i][content="Mirages" i]')) { + } else if (getCSS('meta[name="template" i][content="Mirages" i]') && getCSS('li.next>a')) { console.info(`[自动无缝翻页] - 部分使用 Typecho 的网站 (Mirages)`); return 13; } else if (getCSS('.stui-page, .stui-page__item') && getCSS('li.active.hidden-xs+li.hidden-xs>a') && getCSS('.stui-vodlist')) { @@ -512,7 +512,7 @@ function: { typecho_handsome: { blank: 3, pager: { - nextL: 'li.next > a', + nextL: 'li.next>a', pageE: '.blog-post, .post-list', replaceE: '.page-navigator' } @@ -520,7 +520,7 @@ function: { typecho_mirages: { blank: 3, pager: { - nextL: 'li.next > a', + nextL: 'li.next>a', pageE: '#index>article, #archive>article', scriptT: 3, replaceE: '.page-navigator'