From 4e7136a49758ab69fdc0290f5bcf8a5a18a46c11 Mon Sep 17 00:00:00 2001 From: hymbz Date: Wed, 20 Nov 2024 16:50:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20=E4=BF=AE=E5=A4=8D=20dmzj=20?= =?UTF-8?q?=E9=9A=90=E8=97=8F=E6=BC=AB=E7=94=BB=E5=87=BA=E7=8E=B0=E4=B8=A4?= =?UTF-8?q?=E4=B8=AA=E7=9B=AE=E5=BD=95=E7=9A=84=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/site/dmzj.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/site/dmzj.tsx b/src/site/dmzj.tsx index 8ff07cc6..4ddab917 100644 --- a/src/site/dmzj.tsx +++ b/src/site/dmzj.tsx @@ -27,7 +27,7 @@ import { }; const handleListPage = async () => { - await waitDom('.cartoon_online_border'); + await waitDom('.commentBox'); // 判断漫画被禁 // 测试例子:https://manhua.dmzj.com/yanquan/ @@ -114,7 +114,7 @@ import { if (dom?.textContent) return () => dom.click(); }; - const isMangaPage = async () => { + const isMangaPage = () => { if (/^\/[^/]*?\/?$/.test(window.location.pathname)) return handleListPage(); return /^\/.*?\/\d+\.shtml$/.test(window.location.pathname); };