From fcd6bb63bb05d38b226fc7f02b1bc1d4afeaf79f Mon Sep 17 00:00:00 2001 From: jiuqianyuan <39406781+jiuqianyuan@users.noreply.github.com> Date: Thu, 30 Nov 2023 21:47:41 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=88=91=E7=9A=84=E5=90=AC=E4=B9=A6):?= =?UTF-8?q?=E5=8D=A1=E7=89=87=E5=BC=8F=E5=B9=BF=E5=91=8A=20(#2689)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(我的听书):卡片式广告 * 格式更正 --- src/apps/com.github.eprendre.tingshu.ts | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/src/apps/com.github.eprendre.tingshu.ts b/src/apps/com.github.eprendre.tingshu.ts index 950470f6..7b69b3da 100644 --- a/src/apps/com.github.eprendre.tingshu.ts +++ b/src/apps/com.github.eprendre.tingshu.ts @@ -11,29 +11,28 @@ export default defineAppConfig({ matchTime: 10000, actionMaximum: 1, resetMatch: 'app', - rules: '[text^="跳过"][text.length<=10]', + rules: '[text*="跳过"][text.length<=10]', snapshotUrls: 'https://i.gkd.li/import/12783430', }, { key: 1, name: '卡片式广告', + activityIds: [ + 'com.github.eprendre.tingshu.ui.search.AggregateSearchActivity', + 'com.github.eprendre.tingshu.ui.play.PlayerActivity', + ], rules: [ { key: 0, - name: '搜索结果底部广告卡片', - activityIds: - 'com.github.eprendre.tingshu.ui.search.AggregateSearchActivity', - matches: - 'ImageView - FrameLayout - FrameLayout[childCount=1] > ImageView[childCount=0]', - snapshotUrls: 'https://i.gkd.li/import/12783466', - }, - { - key: 1, - name: '播放页面广告卡片', + name: '搜索结果底部/播放页面广告卡片', activityIds: 'com.github.eprendre.tingshu.ui.play.PlayerActivity', matches: - 'ImageView + LinearLayout + LinearLayout + FrameLayout[childCount=1] > ImageView[childCount=0]', - snapshotUrls: 'https://i.gkd.li/import/13334850', + 'FrameLayout > FrameLayout[childCount=1] > ImageView[width<80][height<80]', + snapshotUrls: [ + 'https://i.gkd.li/import/12783466', + 'https://i.gkd.li/import/13334850', + 'https://i.gkd.li/import/13446735', + ], }, ], },