Skip to content

Commit

Permalink
fix: 🐛 修复 dmzj 隐藏漫画出现两个目录的 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hymbz committed Nov 20, 2024
1 parent 38f35db commit 4e7136a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/site/dmzj.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
};

const handleListPage = async () => {
await waitDom('.cartoon_online_border');
await waitDom('.commentBox');

// 判断漫画被禁
// 测试例子:https://manhua.dmzj.com/yanquan/
Expand Down Expand Up @@ -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);
};
Expand Down

0 comments on commit 4e7136a

Please sign in to comment.