From dd60c9efd4d848ff70099e78e0e5fccf50d0f0de Mon Sep 17 00:00:00 2001 From: Kun Jinkao <45487685+Snoopy1866@users.noreply.github.com> Date: Sun, 3 Dec 2023 17:03:40 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=BA=94=E7=94=A8=E6=B1=87):=20=E5=BC=80?= =?UTF-8?q?=E5=B1=8F=E5=B9=BF=E5=91=8A=EF=BC=88=E8=A1=A5=E5=85=85=E8=A7=84?= =?UTF-8?q?=E5=88=99=EF=BC=89=E3=80=81=E5=BC=B9=E7=AA=97=E5=B9=BF=E5=91=8A?= =?UTF-8?q?=20(#2779)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat 开屏广告(补充规则) * feat 弹窗广告 --- src/apps/com.yingyonghui.market.ts | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/src/apps/com.yingyonghui.market.ts b/src/apps/com.yingyonghui.market.ts index e3bde8f5..37e99eeb 100644 --- a/src/apps/com.yingyonghui.market.ts +++ b/src/apps/com.yingyonghui.market.ts @@ -11,8 +11,34 @@ export default defineAppConfig({ matchTime: 10000, actionMaximum: 1, resetMatch: 'app', - rules: '[id = "com.yingyonghui.market:id/splashAdvert_skipText"]', - snapshotUrls: 'https://i.gkd.li/import/13196213', + rules: [ + { + key: 0, + matches: '[id = "com.yingyonghui.market:id/splashAdvert_skipText"]', + snapshotUrls: 'https://i.gkd.li/import/13196213', + }, + { + key: 1, + matches: '@ImageView[clickable=true] + * > [text="跳过"]', + snapshotUrls: 'https://i.gkd.li/import/13538315', + }, + ], + }, + { + key: 1, + name: '弹窗广告', + rules: [ + { + key: 0, + name: '快手广告', + activityIds: 'com.yingyonghui.market.ui.MainActivity', + matches: [ + 'ViewGroup[childCount=2] > ImageView + [text="广告"]', + 'ViewGroup[childCount=3] > TextView + TextView + ImageView', + ], + snapshotUrls: 'https://i.gkd.li/import/13538316', + }, + ], }, ], });