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', + }, ], });