From 0692fb61d1f5bcc1c7f245d48b898b8369236fac Mon Sep 17 00:00:00 2001 From: lisonge Date: Thu, 2 Nov 2023 10:47:07 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=99=BE=E5=BA=A6=E8=B4=B4=E5=90=A7):=20?= =?UTF-8?q?=E5=BC=80=E5=B1=8F=E5=B9=BF=E5=91=8A-=E8=A7=84=E5=88=99?= =?UTF-8?q?=E4=BC=98=E5=8C=96=20(#1740)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/com.baidu.tieba.ts | 34 +++++++++++----------------------- 1 file changed, 11 insertions(+), 23 deletions(-) diff --git a/src/apps/com.baidu.tieba.ts b/src/apps/com.baidu.tieba.ts index 7a49968c..f47e8a1b 100644 --- a/src/apps/com.baidu.tieba.ts +++ b/src/apps/com.baidu.tieba.ts @@ -9,37 +9,25 @@ export default defineAppConfig({ name: '开屏广告', desc: '数字倒计时广告,圆形倒计时广告', quickFind: true, - activityIds: [ - 'com.baidu.tieba.tblauncher.MainTabActivity', - 'com.baidu.tieba.pb.pb.main.PbActivity', - 'com.baidu.tieba.frs.FrsActivity', - ], + matchTime: 10000, + actionMaximum: 1, + resetMatch: 'app', rules: [ { key: 0, - matches: - '[id="com.kwad.dy.sdk:id/ksad_splash_circle_skip_view"] TextView[text="跳过"]', // 需要补充快照 + matches: 'TextView[text^="跳过"][text.length<=10]', + snapshotUrls: [ + 'https://i.gkd.li/import/12775906', + 'https://i.gkd.li/import/12566191', + 'https://i.gkd.li/import/12870916', + 'https://i.gkd.li/import/13233500', + ], }, { key: 1, matches: '[id="com.byted.pangle:id/tt_splash_skip_btn"]' }, // 需要补充快照 - { - key: 2, - matches: - 'TextView[text*="广告"||text.length=1] - TextView[text^="跳过"][text.length=5||text.length=2]', - snapshotUrls: [ - 'https://i.gkd.li/import/12775906', - 'https://gkd-kit.gitee.io/import/12566191', - ], - }, { key: 3, matches: - '@FrameLayout[childCount=1][clickable=true][id!=null] > TextView[text="跳过"]', - snapshotUrls: 'https://gkd-kit.gitee.io/import/12870916', - }, - { - key: 4, - matches: - 'TextView[text="广告"] - @LinearLayout[clickable=true] [text="关闭"]', + 'TextView[text="广告"] - @LinearLayout[clickable=true] > [text="关闭"]', snapshotUrls: 'https://gkd-kit.gitee.io/import/13168386', }, ],