fix(酷安): 关闭卡片广告(旧版) (#293)

* feat(酷安)

* fix(酷安)

* fix(酷安)

* 删除注释
This commit is contained in:
Kun Jinkao
2023-09-23 23:12:11 +08:00
committed by GitHub
parent 4f842fe447
commit b0577eb4e5

View File

@@ -41,7 +41,7 @@ export default defineAppConfig({
matches: ['[id$="id/tt_item_tv"][text=`不感兴趣`]'], matches: ['[id$="id/tt_item_tv"][text=`不感兴趣`]'],
}, },
'Button[text$="广告"] + Button[text="不感兴趣"]', 'Button[text$="广告"] + Button[text="不感兴趣"]',
'[id=`com.coolapk.market:id/close_view`]', '[id="com.coolapk.market:id/close_view"]',
], ],
}, },
{ {
@@ -61,9 +61,21 @@ export default defineAppConfig({
'com.coolapk.market.view.node.DynamicNodePageActivity', 'com.coolapk.market.view.node.DynamicNodePageActivity',
], ],
rules: [ rules: [
{
key: 1,
name: '点击x按钮',
matches: [
'[id="com.coolapk.market:id/top_text_view"] + [id="com.coolapk.market:id/close_view"][desc="关闭"]',
],
snapshotUrls: [
'https://gkd-kit.gitee.io/import/12642094',
'https://gkd-kit.gitee.io/import/12642148',
],
},
{ {
preKeys: [1], preKeys: [1],
name: '关闭广告-反馈理由', key: 2,
name: '点击不感兴趣',
matches: '[text$="今日免广告"] + [text="不感兴趣"][clickable=true]', matches: '[text$="今日免广告"] + [text="不感兴趣"][clickable=true]',
snapshotUrls: [ snapshotUrls: [
'https://gkd-kit.gitee.io/import/12642132', 'https://gkd-kit.gitee.io/import/12642132',
@@ -71,12 +83,12 @@ export default defineAppConfig({
], ],
}, },
{ {
key: 1, // preKeys: [2], // 取消前置 key防止快速滑动时停在最后一个界面而不进行点击
matches: ['[id="com.coolapk.market:id/close_view"][desc="关闭"]'], key: 3,
snapshotUrls: [ name: '再次点击不感兴趣',
'https://gkd-kit.gitee.io/import/12642094', matches:
'https://gkd-kit.gitee.io/import/12642148', '@LinearLayout > [id="com.byted.pangle.m:id/tt_item_tv"][text="不感兴趣"]',
], snapshotUrls: ['https://gkd-kit.gitee.io/import/12706437'],
}, },
], ],
}, },