From 8da3ef2ed58d987d4b5f7ca8f47dfa12b49b3315 Mon Sep 17 00:00:00 2001 From: "lzyme.dev@gmail.com" Date: Sun, 30 Aug 2026 00:38:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=80=91=E5=B8=83=E6=B5=81?= =?UTF-8?q?=E4=B8=8B=E6=BB=91=E5=88=A0=E9=99=A4=E6=8C=89=E9=92=AE=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=87=BA=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/jhs-enhance.user.js | 6 +++--- src/plugins/list-page.js | 2 +- src/plugins/wangpan-115.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/jhs-enhance.user.js b/dist/jhs-enhance.user.js index b76b3fe..f46dd5a 100644 --- a/dist/jhs-enhance.user.js +++ b/dist/jhs-enhance.user.js @@ -8977,7 +8977,7 @@ ${err.stack}` : ""); title="点击查看匹配详情">匹配${matchList.length}个`); const $deleteBtn = $box2.find(".delete115Svg"); const $markBtn = $box2.find(".markDeleteSvg"); - if ($deleteBtn.length > 0 && matchList[0].dirId) { + if ($deleteBtn.length > 0 && matchList.some((m) => m.dirId != null)) { $deleteBtn.attr("data-match", JSON.stringify(matchList)); $deleteBtn.show(); } @@ -9194,7 +9194,7 @@ ${err.stack}` : ""); title="${title}">匹配${matchList.length}个`); const $deleteBtn = $box2.find(".delete115Svg"); const $markBtn = $box2.find(".markDeleteSvg"); - if ($deleteBtn.length > 0 && matchList[0].dirId) { + if ($deleteBtn.length > 0 && matchList.some((m) => m.dirId != null)) { $deleteBtn.attr("data-match", JSON.stringify(matchList)); $deleteBtn.show(); } @@ -12164,9 +12164,9 @@ ${err.stack}` : ""); this.replaceHdImg(); this.addJumpPageControl(); this.fixBusTitleBox(); + this.getBean("CoverButtonPlugin").addSvgBtn().then(); await this.doFilter(); await this.getBean("ListPageButtonPlugin").sortItems(); - this.getBean("CoverButtonPlugin").addSvgBtn().then(); $(this.getSelector().itemSelector + " a").attr("target", "_blank"); this.getBean("AutoPagePlugin").checkLoad(); } finally { diff --git a/src/plugins/list-page.js b/src/plugins/list-page.js index 994f00e..cc3cc25 100644 --- a/src/plugins/list-page.js +++ b/src/plugins/list-page.js @@ -56,9 +56,9 @@ class ListPagePlugin extends BasePlugin { this.replaceHdImg(); this.addJumpPageControl(); this.fixBusTitleBox(); + this.getBean("CoverButtonPlugin").addSvgBtn().then(); await this.doFilter(); await this.getBean("ListPageButtonPlugin").sortItems(); - this.getBean("CoverButtonPlugin").addSvgBtn().then(); $(this.getSelector().itemSelector + " a").attr("target", "_blank"); this.getBean("AutoPagePlugin").checkLoad(); } finally { diff --git a/src/plugins/wangpan-115.js b/src/plugins/wangpan-115.js index 301d321..3b0b53d 100644 --- a/src/plugins/wangpan-115.js +++ b/src/plugins/wangpan-115.js @@ -360,7 +360,7 @@ const _WangPan115MatchPlugin = class _WangPan115MatchPlugin extends BasePlugin { $box2.find(".jhs-match-btn").replaceWith(`匹配${matchList.length}个`); const $deleteBtn = $box2.find(".delete115Svg"); const $markBtn = $box2.find(".markDeleteSvg"); - if ($deleteBtn.length > 0 && matchList[0].dirId) { + if ($deleteBtn.length > 0 && matchList.some(m => m.dirId != null)) { $deleteBtn.attr("data-match", JSON.stringify(matchList)); $deleteBtn.show(); } @@ -569,7 +569,7 @@ const _WangPan115MatchPlugin = class _WangPan115MatchPlugin extends BasePlugin { $box2.find(".video-title").prepend(`匹配${matchList.length}个`); const $deleteBtn = $box2.find(".delete115Svg"); const $markBtn = $box2.find(".markDeleteSvg"); - if ($deleteBtn.length > 0 && matchList[0].dirId) { + if ($deleteBtn.length > 0 && matchList.some(m => m.dirId != null)) { $deleteBtn.attr("data-match", JSON.stringify(matchList)); $deleteBtn.show(); }