From b3869c4a98d3eac488ad0b46b47a31b3b049248a Mon Sep 17 00:00:00 2001 From: Kun Jinkao <45487685+Snoopy1866@users.noreply.github.com> Date: Sat, 24 Feb 2024 16:36:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B0=8F=E7=BA=A2=E4=B9=A6)=20=E5=88=86?= =?UTF-8?q?=E6=AE=B5=E5=B9=BF=E5=91=8A-=E4=BF=A1=E6=81=AF=E6=B5=81?= =?UTF-8?q?=E5=B9=BF=E5=91=8A=EF=BC=88=E4=BF=AE=E5=A4=8D=E3=80=81=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E8=A7=84=E5=88=99=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/com.xingin.xhs.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/apps/com.xingin.xhs.ts b/src/apps/com.xingin.xhs.ts index fb23347c..0d76935e 100644 --- a/src/apps/com.xingin.xhs.ts +++ b/src/apps/com.xingin.xhs.ts @@ -50,7 +50,6 @@ export default defineAppConfig({ ], }, { - enable: false, key: 3, name: '分段广告-信息流广告', desc: '长按"赞助"/"广告"标识的卡片-点"不感兴趣"', @@ -63,17 +62,22 @@ export default defineAppConfig({ name: '长按"赞助"/"广告"卡片', matches: '@FrameLayout[clickable=true] > LinearLayout TextView[text="赞助"||text="广告"][visibleToUser=true]', + excludeMatches: 'RecyclerView > LinearLayout > [text^="不喜欢"]', snapshotUrls: [ 'https://i.gkd.li/i/13455503', 'https://i.gkd.li/i/13470690', + 'https://i.gkd.li/i/14392171', // 使用 excludeMatches 防止反复触发规则 ], }, { preKeys: 0, name: '点"不感兴趣"', matches: - 'RecyclerView > @LinearLayout > TextView[text="不喜欢该内容"]', - snapshotUrls: 'https://i.gkd.li/i/13455500', + 'RecyclerView > @LinearLayout[index=0] > TextView[text^="不喜欢"]', + snapshotUrls: [ + 'https://i.gkd.li/i/13455500', + 'https://i.gkd.li/i/14392187', + ], }, ], },