diff --git a/src/apps/com.coolapk.market.ts b/src/apps/com.coolapk.market.ts index c28ff63d..ff4377b7 100644 --- a/src/apps/com.coolapk.market.ts +++ b/src/apps/com.coolapk.market.ts @@ -19,40 +19,51 @@ export default defineAppConfig({ }, { key: 0, - name: '关闭卡片广告', - desc: '点击卡片右上角按钮,然后点击关闭弹窗', + name: '卡片广告', + desc: '点击卡片右上角按钮->免广告-点击不感兴趣->选择关闭原因-点击不感兴趣', activityIds: [ 'com.coolapk.market.view.main.MainActivity', // 缺少快照 'com.coolapk.market.view.base.SimpleAlphaActivity', // 缺少快照 'com.coolapk.market.view.node.DynamicNodePageActivity', + 'com.coolapk.market.view.feed.FeedDetailActivityV8', ], rules: [ { key: 1, name: '点击右上角x按钮', matches: - '[id="com.coolapk.market:id/ad_time_view"] + [id="com.coolapk.market:id/close_view"]', - snapshotUrls: 'https://gkd-kit.gitee.io/import/12707506', + '[id="com.coolapk.market:id/ad_time_view"||id="com.coolapk.market:id/top_text_view"||id="com.coolapk.market:id/ad_text_view"] + [id="com.coolapk.market:id/close_view"]', + snapshotUrls: [ + 'https://gkd-kit.gitee.io/import/12707506', + 'https://gkd-kit.gitee.io/import/12642094', + 'https://gkd-kit.gitee.io/import/12642148', + 'https://gkd-kit.gitee.io/import/12774771', + ], }, { preKeys: [1], key: 2, - name: '点击不感兴趣', - matches: 'Button[text$="广告"] + Button[text="不感兴趣"]', - snapshotUrls: 'https://gkd-kit.gitee.io/import/12707509', + name: '去广告/免广告-点击不感兴趣', + matches: + 'Button[text$="广告"] Button[text="不感兴趣"]', + snapshotUrls: [ + 'https://gkd-kit.gitee.io/import/12707509', + 'https://gkd-kit.gitee.io/import/12642132', + 'https://gkd-kit.gitee.io/import/12642155', + 'https://gkd-kit.gitee.io/import/12774753', + ], }, { - // preKeys: [2], // 取消前置 key,防止快速滑动时停在最后一个界面而不进行点击 key: 3, - name: '再次点击不感兴趣', - activityIds: ['com.bytedance.sdk.openadsdk.core.dislike.ui'], + name: '选择关闭原因-点击不感兴趣', matches: [ - '@LinearLayout[clickable=true] > [id$="id/tt_item_tv"][text="不感兴趣"]', + '@LinearLayout[clickable=true] > TextView[text="不感兴趣"][id$="id/tt_item_tv"]', ], snapshotUrls: [ - 'https://gkd-kit.gitee.io/import/38517192/9badc07c-4da2-4066-8af5-d96a86a28315', + 'https://gkd-kit.gitee.io/import/12472633', 'https://gkd-kit.gitee.io/import/12655713', 'https://gkd-kit.gitee.io/import/12660759', + 'https://gkd-kit.gitee.io/import/12706437', ], }, ], @@ -64,46 +75,6 @@ export default defineAppConfig({ snapshotUrls: 'https://gkd-kit.gitee.io/import/12503762', rules: '[text=`立即更新`] - [text=`取消`]', }, - { - key: 2, - name: '关闭卡片广告(旧版)', - desc: '点击卡片右上角按钮,然后点击关闭弹窗', - activityIds: [ - 'com.coolapk.market.view.feed.FeedDetailActivityV8', - 'com.bytedance.sdk.openadsdk.core.dislike.ui', - 'com.coolapk.market.view.node.DynamicNodePageActivity', - ], - 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], - key: 2, - name: '点击不感兴趣', - matches: '[text$="今日免广告"] + [text="不感兴趣"][clickable=true]', - snapshotUrls: [ - 'https://gkd-kit.gitee.io/import/12642132', - 'https://gkd-kit.gitee.io/import/12642155', - ], - }, - { - // preKeys: [2], // 取消前置 key,防止快速滑动时停在最后一个界面而不进行点击 - key: 3, - name: '再次点击不感兴趣', - matches: - '@LinearLayout > [id="com.byted.pangle.m:id/tt_item_tv"][text="不感兴趣"]', - snapshotUrls: ['https://gkd-kit.gitee.io/import/12706437'], - }, - ], - }, + // key=2 曾经被使用,不可再用 ], });