From 14a5d5ba5bd750a30acd76adb84dcdce070ba8d4 Mon Sep 17 00:00:00 2001 From: Kun Jinkao <45487685+Snoopy1866@users.noreply.github.com> Date: Fri, 10 Nov 2023 00:01:07 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=B0=8F=E6=AD=A5=E7=82=B9):=20=E5=B9=BF?= =?UTF-8?q?=E5=91=8A=E5=BC=B9=E7=AA=97=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=80=E5=B1=8F=E5=B9=BF=E5=91=8A?= =?UTF-8?q?=EF=BC=88=E4=BC=98=E5=8C=96=E8=A7=84=E5=88=99=EF=BC=89=20(#1950?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat 广告弹窗(补充规则) * feat 开屏广告(优化规则) --- src/apps/run.xbud.android.ts | 39 ++++++++++++++++++++++++++++-------- 1 file changed, 31 insertions(+), 8 deletions(-) diff --git a/src/apps/run.xbud.android.ts b/src/apps/run.xbud.android.ts index f17a4975..70835f77 100644 --- a/src/apps/run.xbud.android.ts +++ b/src/apps/run.xbud.android.ts @@ -7,19 +7,42 @@ export default defineAppConfig({ { key: 0, name: '开屏广告', - activityIds: 'run.xbud.android.mvp.ui.other.SplashActivity', - rules: '[id="run.xbud.android:id/bodyLayout"] >n [text^="跳过"]', + quickFind: true, + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', + rules: '[text^="跳过"][text.length<=10]', snapshotUrls: 'https://i.gkd.li/import/12777125', }, { key: 1, - name: '首页广告弹窗', + name: '广告弹窗', activityIds: 'run.xbud.android.mvp.ui.other.MainActivity', - rules: - '[id="run.xbud.android:id/ksad_tk_view"] >n @ViewGroup[clickable=true] > ImageView', - snapshotUrls: [ - 'https://i.gkd.li/import/12777133', - 'https://i.gkd.li/import/12777134', + rules: [ + { + key: 0, + name: '快手广告', + matches: + '[id="run.xbud.android:id/ksad_tk_view"] >n @ViewGroup[clickable=true] > ImageView', + snapshotUrls: [ + 'https://i.gkd.li/import/12777133', + 'https://i.gkd.li/import/12777134', + ], + }, + { + key: 1, + name: '腾讯广告1', + matches: + 'ImageView - LinearLayout < FrameLayout - FrameLayout > FrameLayout > ImageView', + snapshotUrls: 'https://i.gkd.li/import/13296371', + }, + { + key: 2, + name: '腾讯广告2', + matches: + 'ImageView -n FrameLayout > FrameLayout > FrameLayout > ImageView', + snapshotUrls: 'https://i.gkd.li/import/13296398', + }, ], }, ],