From 0d63f5128be6fcf64266d38dd034ebbdd43e7af7 Mon Sep 17 00:00:00 2001 From: lisonge Date: Mon, 25 Sep 2023 14:04:29 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=87=82=E8=BD=A6=E5=B8=9D):=20=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E6=8E=A8=E8=8D=90=E5=8D=A1=E7=89=87=E5=B9=BF=E5=91=8A?= =?UTF-8?q?=20(#140)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/com.ss.android.auto.ts | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/src/apps/com.ss.android.auto.ts b/src/apps/com.ss.android.auto.ts index c48bf0c3..79907cb1 100644 --- a/src/apps/com.ss.android.auto.ts +++ b/src/apps/com.ss.android.auto.ts @@ -15,10 +15,21 @@ export default defineAppConfig({ key: 1, name: '首页推荐卡片广告', activityIds: 'com.ss.android.auto.activity.SplashActivity', - rules: - '[text="广告"] < LinearLayout + @FrameLayout[clickable=true][id!=null] > TextView[text.length=1][id=null][clickable=false]', - // 貌似快照存在延迟导致屏幕与节点不对应 - snapshotUrls: 'https://gkd-kit.gitee.io/import/12660816', + rules: [ + { + key: 0, + matches: + '[text="广告"] < LinearLayout + @FrameLayout[clickable=true][id!=null] > TextView[text.length=1][id=null][clickable=false]', + // 貌似快照存在延迟导致屏幕与节点不对应 + snapshotUrls: 'https://gkd-kit.gitee.io/import/12660816', + }, + { + preKeys: 1, + matches: + '[text$="精准屏蔽"] + [text="不感兴趣"][id!=null][clickable=true]', + snapshotUrls: 'https://gkd-kit.gitee.io/import/12711589', + }, + ], }, ], });