From 0a0dd495582775bf61d44fb763ae48283ce3a6eb Mon Sep 17 00:00:00 2001 From: Kun Jinkao <45487685+Snoopy1866@users.noreply.github.com> Date: Fri, 10 Nov 2023 00:43:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(QQ=E6=B5=8F=E8=A7=88=E5=99=A8):=20=E5=B0=8F?= =?UTF-8?q?=E8=AF=B4=E9=98=85=E8=AF=BB=E9=A1=B5=E9=9D=A2-=E5=8D=A1?= =?UTF-8?q?=E7=89=87=E5=B9=BF=E5=91=8A=EF=BC=88=E4=BF=AE=E5=A4=8D=E8=AF=AF?= =?UTF-8?q?=E8=A7=A6=EF=BC=89=20(#1975)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/com.tencent.mtt.ts | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/apps/com.tencent.mtt.ts b/src/apps/com.tencent.mtt.ts index 82bd8346..369ec4b4 100644 --- a/src/apps/com.tencent.mtt.ts +++ b/src/apps/com.tencent.mtt.ts @@ -22,6 +22,18 @@ export default defineAppConfig({ name: '小说阅读页面-卡片广告', activityIds: 'com.tencent.mtt.MainActivity', rules: [ + { + cd: 3000, + key: 0, + name: '点击广告按钮', + excludeMatches: '[desc="屏蔽此广告"||desc="不感兴趣"]', + matches: + '@ViewGroup[clickable=true][visibleToUser=true] > ViewGroup > [desc="广告"]', + snapshotUrls: [ + 'https://gkd-kit.gitee.io/import/12907446', + 'https://gkd-kit.gitee.io/import/12907445', // 限定 visibleToUser=true,防止在节点不可见时触发规则 + ], + }, { preKeys: 0, key: 1, @@ -42,17 +54,6 @@ export default defineAppConfig({ 'https://gkd-kit.gitee.io/import/12907653', ], }, - { - cd: 3000, - key: 0, - name: '点击广告按钮', - excludeMatches: '[desc="屏蔽此广告"||desc="不感兴趣"]', - matches: '@ViewGroup[visibleToUser=true] > ViewGroup > [desc="广告"]', - snapshotUrls: [ - 'https://gkd-kit.gitee.io/import/12907446', - 'https://gkd-kit.gitee.io/import/12907445', // 限定 visibleToUser=true,防止在节点不可见时触发规则 - ], - }, ], }, {