From ab694b2eb4be785d0b8114d8520f87cab610c5d2 Mon Sep 17 00:00:00 2001 From: jiuqianyuan <39406781+jiuqianyuan@users.noreply.github.com> Date: Tue, 5 Dec 2023 20:19:11 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=87=82=E8=BD=A6=E5=B8=9D):=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?=E3=80=81=E6=95=B4=E5=90=88PR=20(#2793)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close #2791 close #2701 --- src/apps/com.ss.android.auto.ts | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/src/apps/com.ss.android.auto.ts b/src/apps/com.ss.android.auto.ts index dc8962d2..295b9b91 100644 --- a/src/apps/com.ss.android.auto.ts +++ b/src/apps/com.ss.android.auto.ts @@ -31,10 +31,16 @@ export default defineAppConfig({ snapshotUrls: 'https://i.gkd.li/import/12660816', }, { + // 不与旧版本合并,尽量使用[clickable=true],保证速度避免误触 preKeys: 1, - name: '点击【不感兴趣】', - matches: - '[text$="精准屏蔽"] + [text="不感兴趣"][id!=null][clickable=true]', + name: '点击【不感兴趣】1', // 懂车帝v7.8.4样式 + matches: '@ViewGroup[clickable=true] TextView[text="不感兴趣"]', + snapshotUrls: 'https://i.gkd.li/import/13538627', + }, + { + preKeys: 1, + name: '点击【不感兴趣】2', // 懂车帝v7.7.4样式 + matches: '[text="不感兴趣"][clickable=true]', snapshotUrls: 'https://i.gkd.li/import/12711589', }, ], @@ -72,17 +78,18 @@ export default defineAppConfig({ }, { key: 4, - name: '文章底部广告', + name: '文章底部卡片式广告', quickFind: true, activityIds: 'com.ss.android.article.base.feature.detail2.view.NewDetailActivity', rules: - '@ImageView[clickable=true] <2 RelativeLayout[childCount=4][id!=null] > TextView[text="广告"][id!=null]', + 'FrameLayout > RelativeLayout > @ImageView[clickable=true] + [text="广告"]', snapshotUrls: 'https://i.gkd.li/import/12811597', }, { key: 5, - name: '评论区广告', + name: '评论区信息流广告', + desc: '像正常内容的广告', quickFind: true, activityIds: [ 'com.ss.android.article.base.feature.detail2.view.NewDetailActivity', @@ -90,7 +97,7 @@ export default defineAppConfig({ 'com.ss.android.auto.ugc.video.activity.UgcNewDetailActivity', ], rules: - 'RelativeLayout[childCount=5][id=null] > @ImageView[clickable=true][id!=null] - LinearLayout[childCount=2][id!=null] > TextView[text="广告"][id!=null]', + 'FrameLayout > RelativeLayout > @ImageView[clickable=true] - LinearLayout > [text="广告"]', snapshotUrls: [ 'https://i.gkd.li/import/12811459', 'https://i.gkd.li/import/12825865', @@ -104,8 +111,7 @@ export default defineAppConfig({ actionMaximum: 1, resetMatch: 'app', activityIds: 'com.ss.android.auto.activity.SplashActivity', - rules: - '@TextView[clickable=true && text.length =1] + [text ^="打开推送通知"]', + rules: '@TextView[clickable=true] + [text^="打开推送通知"]', snapshotUrls: 'https://i.gkd.li/import/12840664', }, ],