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,防止在节点不可见时触发规则 - ], - }, ], }, {