From c10c17dc6bd7963c7a5abcc85afa942a15b76d1f Mon Sep 17 00:00:00 2001 From: Kun Jinkao <45487685+Snoopy1866@users.noreply.github.com> Date: Mon, 13 Nov 2023 01:38:15 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=BD=91=E6=98=93=E9=82=AE=E7=AE=B1):=20?= =?UTF-8?q?=E5=BC=80=E5=B1=8F=E5=B9=BF=E5=91=8A=EF=BC=88=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E8=A7=84=E5=88=99=EF=BC=89=20(#2052)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat 开屏广告(优化规则) * feat(网易邮箱): 开屏广告 --------- Co-authored-by: lisonge --- src/apps/com.netease.mobimail.ts | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/src/apps/com.netease.mobimail.ts b/src/apps/com.netease.mobimail.ts index 3c5dde70..5f4bf830 100644 --- a/src/apps/com.netease.mobimail.ts +++ b/src/apps/com.netease.mobimail.ts @@ -7,21 +7,28 @@ export default defineAppConfig({ { key: 0, name: '开屏广告', - activityIds: 'com.netease.mail.ad.launch.ui.SplashAdActivity', + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', rules: [ { - matches: '[id="com.netease.mobimail:id/ad_skip"]', - snapshotUrls: 'https://i.gkd.li/import/12667519', + key: 0, + name: '开屏广告-0', + quickFind: true, + matches: '[text*="跳过"][text.length<=10][clickable=true]', + snapshotUrls: [ + 'https://i.gkd.li/import/12667519', + 'https://i.gkd.li/import/13328425', // 限定 [clickable=true] 防止误触假的跳过按钮 + 'https://i.gkd.li/import/12686132', + 'https://i.gkd.li/import/13328441', + ], }, { + key: 1, + name: '开屏广告-1', matches: '[id="com.byted.pangle:id/tt_splash_skip_btn"]', snapshotUrls: 'https://i.gkd.li/import/12686093', }, - { - matches: - '[id="com.netease.mobimail:id/ad_placeholder"] >5 TextView[text^="跳过"]', - snapshotUrls: 'https://i.gkd.li/import/12686132', - }, ], }, {