From b8cdc59c967a01fe6bae21e87cbae83bcc78f74f Mon Sep 17 00:00:00 2001 From: Kun Jinkao <45487685+Snoopy1866@users.noreply.github.com> Date: Tue, 14 Nov 2023 21:05:40 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E4=B8=8B=E5=8E=A8=E6=88=BF):=20=E5=BC=80?= =?UTF-8?q?=E5=B1=8F=E5=B9=BF=E5=91=8A=EF=BC=88=E4=BC=98=E5=8C=96=E8=A7=84?= =?UTF-8?q?=E5=88=99=EF=BC=89=E3=80=81=E5=8D=A1=E7=89=87=E5=BC=8F=E5=B9=BF?= =?UTF-8?q?=E5=91=8A=20(#2113)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat 开屏广告(优化规则) * feat 卡片式广告 --- src/apps/com.xiachufang.ts | 41 +++++++++++++++++++++++++++++++------- 1 file changed, 34 insertions(+), 7 deletions(-) diff --git a/src/apps/com.xiachufang.ts b/src/apps/com.xiachufang.ts index a684544b..17ae925b 100644 --- a/src/apps/com.xiachufang.ts +++ b/src/apps/com.xiachufang.ts @@ -7,13 +7,40 @@ export default defineAppConfig({ { key: 0, name: '开屏广告', - activityIds: ['com.xiachufang.startpage.ui.StartPageActivity'], - rules: - '[id$="/tt_splash_skip_btn"||id$="/start_page_count_down_tv"||text$="跳过"]', - snapshotUrls: [ - 'https://i.gkd.li/import/12505985', - 'https://i.gkd.li/import/12506014', - 'https://i.gkd.li/import/12506041', + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', + rules: [ + { + key: 0, + name: '开屏广告-1', + matches: '[id="com.byted.pangle:id/tt_splash_skip_btn"]', + snapshotUrls: 'https://i.gkd.li/import/12505985', + }, + { + key: 1, + name: '开屏广告-2', + matches: '@FrameLayout > [text$="跳过"][text.length<=10]', + quickFind: true, + snapshotUrls: [ + 'https://i.gkd.li/import/12506014', + 'https://i.gkd.li/import/12506041', + ], + }, + ], + }, + { + key: 1, + name: '卡片式广告', + rules: [ + { + key: 0, + name: '菜谱底部卡片广告', + activityIds: 'com.xiachufang.activity.recipe.RecipeDetailActivity', + quickFind: true, + matches: '[id="com.xiachufang:id/ad_close"][visibleToUser=true]', + snapshotUrls: 'https://i.gkd.li/import/13348710', + }, ], }, ],