From 06bddba8cf4c7c9de0b4ffc221f0f2494e8314b2 Mon Sep 17 00:00:00 2001 From: jiuqianyuan <39406781+jiuqianyuan@users.noreply.github.com> Date: Sun, 14 Jan 2024 22:23:15 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=BD=91=E6=98=93=E9=82=AE=E7=AE=B1?= =?UTF-8?q?=E5=A4=A7=E5=B8=88):=E5=BC=80=E5=B1=8F=E5=B9=BF=E5=91=8A?= =?UTF-8?q?=E3=80=81=E5=85=A8=E5=B1=8F=E5=B9=BF=E5=91=8A-=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E6=88=90=E5=B0=B1=20(#3811)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(网易邮箱大师):开屏广告、查看成就 - 【开屏广告】- 开屏有个无效跳过按钮需排除 - 【查看成就】- 新增 Signed-off-by: jiuqianyuan <39406781+jiuqianyuan@users.noreply.github.com> * chore(actions): check_format_lint * Update com.netease.mail.ts --------- Signed-off-by: jiuqianyuan <39406781+jiuqianyuan@users.noreply.github.com> Co-authored-by: github-actions[bot] Co-authored-by: 二刺螈 --- src/apps/com.netease.mail.ts | 44 ++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/src/apps/com.netease.mail.ts b/src/apps/com.netease.mail.ts index 1d009479..52c672ef 100644 --- a/src/apps/com.netease.mail.ts +++ b/src/apps/com.netease.mail.ts @@ -4,9 +4,39 @@ export default defineAppConfig({ id: 'com.netease.mail', name: '网易邮箱大师', groups: [ + { + key: 0, + name: '开屏广告', + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', + actionCdKey: 0, + actionMaximumKey: 0, + rules: [ + { + key: 0, + quickFind: true, + matches: '[text*="跳过"][text.length<=10]', + excludeMatches: '[id="com.netease.mail:id/ad_skip"][clickable=false]', + snapshotUrls: [ + 'https://i.gkd.li/import/12893573', + 'https://i.gkd.li/import/12923776', + 'https://i.gkd.li/import/13195662', + 'https://i.gkd.li/import/12818335', + 'https://i.gkd.li/import/13206298', // 使用 excludeMatches 防止提前触发规则 + 'https://i.gkd.li/import/13207736', // TODO 一整块图片,无法跳过 + ], + }, + { + key: 1, + matches: '[id$="tt_splash_skip_btn"]', + snapshotUrls: 'https://i.gkd.li/import/12999739', + }, + ], + }, { key: 1, - name: '更新弹窗', + name: '更新提示', activityIds: [ 'com.netease.mobimail.module.flutter.CustomFlutterActivity', ], @@ -16,7 +46,7 @@ export default defineAppConfig({ }, { key: 2, - name: '邮件列表广告', + name: '全屏广告-邮件列表广告', activityIds: ['com.netease.mail.biz.main.MainITabActivity'], quickFind: true, rules: [ @@ -34,5 +64,15 @@ export default defineAppConfig({ ], snapshotUrls: 'https://i.gkd.li/import/12664070', }, + { + key: 5, + name: '全屏广告-查看成就', + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', + rules: + 'TextView[text="恭喜您获得以下成就"] - TextView[text=""][clickable=true]', + snapshotUrls: 'https://i.gkd.li/import/13876817', + }, ], });