From 709dc59ccdd6679bea0ae13192815beed3c54c29 Mon Sep 17 00:00:00 2001 From: Kun Jinkao <45487685+Snoopy1866@users.noreply.github.com> Date: Sun, 3 Dec 2023 16:36:26 +0800 Subject: [PATCH] =?UTF-8?q?feat(OurPlay=E5=8A=A0=E9=80=9F=E5=99=A8):=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=E3=80=81=E6=9B=B4=E6=96=B0=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=EF=BC=88=E4=BC=98=E5=8C=96=E8=A7=84=E5=88=99=EF=BC=89?= =?UTF-8?q?=20(#2713)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat 开屏广告(优化规则) * feat 更新弹窗(优化规则) --- src/apps/com.excean.splay.ts | 38 ++++++++++++++---------------------- 1 file changed, 15 insertions(+), 23 deletions(-) diff --git a/src/apps/com.excean.splay.ts b/src/apps/com.excean.splay.ts index 0b09736b..342aa3ec 100644 --- a/src/apps/com.excean.splay.ts +++ b/src/apps/com.excean.splay.ts @@ -7,34 +7,26 @@ export default defineAppConfig({ { key: 0, name: '开屏广告', - activityIds: ['com.excelliance.kxqp.gs.main.MainActivity'], - rules: [ - { - matches: 'ImageView -(4) LinearLayout[childCount=2] > [text^="跳过"]', - snapshotUrls: ['https://i.gkd.li/import/12684539'], - }, - { - matches: - '[id="com.excean.splay:id/fl_jump"] - RelativeLayout > [text="跳过"][clickable=true]', - snapshotUrls: ['https://i.gkd.li/import/12684565'], - }, - { - matches: '[id="com.excean.splay:id/render_ad_skip"][text^="跳过"]', - snapshotUrls: ['https://i.gkd.li/import/12684579'], - }, + quickFind: true, + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', + rules: '[text^="跳过"][text.length<=10]', + snapshotUrls: [ + 'https://i.gkd.li/import/12684539', + 'https://i.gkd.li/import/12684565', + 'https://i.gkd.li/import/12684579', + 'https://i.gkd.li/import/13486087', + 'https://i.gkd.li/import/13486740', ], }, { key: 1, name: '更新弹窗', - activityIds: ['com.excelliance.kxqp.gs.main.MainActivity'], - rules: [ - { - matches: - '[id="com.excean.splay:id/positive"][text="立即更新"] + [id="com.excean.splay:id/negative"][text="忽略"]', - snapshotUrls: ['https://i.gkd.li/import/12684551'], - }, - ], + actionMaximum: 1, + resetMatch: 'app', + rules: '[text="发现新版本"] +n * > [text="忽略"]', + snapshotUrls: 'https://i.gkd.li/import/12684551', }, ], });