feat(QQ浏览器): 小说阅读页面-卡片广告-规则优化 (#1106)

This commit is contained in:
lisonge 2023-10-16 20:51:05 +08:00
parent 34400486cb
commit 17115363d4

View File

@ -21,17 +21,10 @@ export default defineAppConfig({
name: '小说阅读页面-卡片广告',
activityIds: 'com.tencent.mtt.MainActivity',
rules: [
{
key: 0,
matches: '@ViewGroup[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,
name: '点击[屏蔽此广告]',
matches: '@ViewGroup > [desc="屏蔽此广告"]',
snapshotUrls: [
'https://gkd-kit.gitee.io/import/12907654',
@ -41,12 +34,24 @@ export default defineAppConfig({
{
preKeys: 1,
key: 2,
name: '点击[不感兴趣]',
matches: '@ViewGroup > [desc="不感兴趣"]',
snapshotUrls: [
'https://gkd-kit.gitee.io/import/12907655',
'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防止在节点不可见时触发规则
],
},
],
},
{