fix(QQ浏览器): 小说阅读页面-卡片广告(修复误触) (#1975)

This commit is contained in:
Kun Jinkao
2023-11-10 00:43:56 +08:00
committed by GitHub
parent 129dcbf878
commit 0a0dd49558

View File

@@ -22,6 +22,18 @@ export default defineAppConfig({
name: '小说阅读页面-卡片广告', name: '小说阅读页面-卡片广告',
activityIds: 'com.tencent.mtt.MainActivity', activityIds: 'com.tencent.mtt.MainActivity',
rules: [ 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, preKeys: 0,
key: 1, key: 1,
@@ -42,17 +54,6 @@ export default defineAppConfig({
'https://gkd-kit.gitee.io/import/12907653', '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防止在节点不可见时触发规则
],
},
], ],
}, },
{ {