From 7a40f65ea4169e67a86a647db5e6a4bd97e66a47 Mon Sep 17 00:00:00 2001 From: Kun Jinkao <45487685+Snoopy1866@users.noreply.github.com> Date: Sun, 17 Sep 2023 22:10:41 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E9=85=B7=E5=AE=89):=20=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E5=8D=A1=E7=89=87=E5=B9=BF=E5=91=8A=EF=BC=88=E6=97=A7=E7=89=88?= =?UTF-8?q?=EF=BC=89=20(#115)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 修改-广告反馈-规则 * feat(酷安) * Update com.coolapk.market.ts --- src/apps/com.coolapk.market.ts | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/src/apps/com.coolapk.market.ts b/src/apps/com.coolapk.market.ts index 1b2e0cb5..9b78fecb 100644 --- a/src/apps/com.coolapk.market.ts +++ b/src/apps/com.coolapk.market.ts @@ -32,9 +32,10 @@ export default defineAppConfig({ 'com.coolapk.market.view.main.MainActivity', 'com.coolapk.market.view.base.SimpleAlphaActivity', ], - snapshotUrls: + snapshotUrls: [ 'https://gkd-kit.gitee.io/import/38517192/9badc07c-4da2-4066-8af5-d96a86a28315', - matches: '@LinearLayout > TextView[id!=null][text=`不感兴趣`]', + ], + matches: ['[id="com.byted.pangle.m:id/tt_item_tv"][text=`不感兴趣`]'], }, 'Button[text$="免广告"] + Button[text="不感兴趣"]', // 1692148279610 'Button[text$=`去广告`] - Button[text=`不感兴趣`]', @@ -48,5 +49,34 @@ 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: [ + { + preKeys: [1], + name: '关闭广告-反馈理由', + matches: '[text$="今日免广告"] + [text="不感兴趣"][clickable=true]', + snapshotUrls: [ + 'https://gkd-kit.gitee.io/import/12642132', + 'https://gkd-kit.gitee.io/import/12642155', + ], + }, + { + key: 1, + matches: ['[id="com.coolapk.market:id/close_view"][desc="关闭"]'], + snapshotUrls: [ + 'https://gkd-kit.gitee.io/import/12642094', + 'https://gkd-kit.gitee.io/import/12642148', + ], + }, + ], + }, ], });