From 61d0259bcbc9f35ef65dd15610b4f6bb0bb70bd4 Mon Sep 17 00:00:00 2001 From: jiuqianyuan <39406781+jiuqianyuan@users.noreply.github.com> Date: Sun, 24 Dec 2023 20:27:37 +0800 Subject: [PATCH] =?UTF-8?q?feat(AppShare):=E5=BC=80=E5=B1=8F=E5=B9=BF?= =?UTF-8?q?=E5=91=8A=E3=80=81=E4=B8=8B=E8=BD=BD=E9=A1=B5-=E5=8D=A1?= =?UTF-8?q?=E7=89=87=E5=B9=BF=E5=91=8A=20(#3298)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close #3290 close #3323 --- src/apps/info.muge.appshare.ts | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/src/apps/info.muge.appshare.ts b/src/apps/info.muge.appshare.ts index 0dbf181d..4a5594d7 100644 --- a/src/apps/info.muge.appshare.ts +++ b/src/apps/info.muge.appshare.ts @@ -7,31 +7,37 @@ export default defineAppConfig({ { key: 0, name: '开屏广告', - activityIds: [ - 'info.muge.appshare.view.launch.LaunchActivity', - 'com.miui.home.launcher.Launcher', - ], + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', rules: [ { - matches: '[id="com.byted.pangle:id/tt_splash_skip_btn"]', + matches: '[id$="tt_splash_skip_btn"]', snapshotUrls: [ 'https://i.gkd.li/import/12683145', 'https://i.gkd.li/import/12683173', // activityId: 'com.miui.home.launcher.Launcher' + 'https://i.gkd.li/import/13702708', ], }, { - matches: '[id="info.muge.appshare:id/tv_jump"][text^="跳过"]', - snapshotUrls: 'https://i.gkd.li/import/12683168', - }, - { - matches: - 'ImageView -(4) LinearLayout[childCount=2] > [id=null][text^="跳过"]', + matches: '[text*="跳过"][text.length<=10]', snapshotUrls: [ + 'https://i.gkd.li/import/12683168', 'https://i.gkd.li/import/12683211', 'https://i.gkd.li/import/12748893', ], }, ], }, + { + key: 6, + name: '下载页-卡片广告', + matchTime: 10000, + actionMaximum: 1, + activityIds: 'info.muge.appshare.view.app.detail.AppDetailActivity', + rules: + 'FrameLayout[childCount>1] > FrameLayout[childCount=1] > ImageView[width<90][height<90]', + snapshotUrls: 'https://i.gkd.li/import/13712716', + }, ], });