From 6ccffa69d890d0a6f0e1fbc59d92c8cdee6bf793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8B=89=E5=B7=B4=E6=8B=89=E5=98=BF?= <83610194+superHao2000@users.noreply.github.com> Date: Thu, 30 Nov 2023 21:58:48 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=A4=9A=E7=9C=8B=E9=98=85=E8=AF=BB):=20?= =?UTF-8?q?=E5=B0=8F=E8=AF=B4=E9=A1=B5=E4=B8=8B=E6=96=B9=E5=B9=BF=E5=91=8A?= =?UTF-8?q?=E5=92=8C=E5=85=A8=E5=B1=8F=E5=B9=BF=E5=91=8A=20(#2651)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: duokan * feat(多看): 小说页全屏卡片广告 --------- Co-authored-by: lisonge close #1588 --- src/apps/com.duokan.reader.ts | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/src/apps/com.duokan.reader.ts b/src/apps/com.duokan.reader.ts index bd590c3c..89f9fcf6 100644 --- a/src/apps/com.duokan.reader.ts +++ b/src/apps/com.duokan.reader.ts @@ -27,5 +27,38 @@ export default defineAppConfig({ }, ], }, + { + key: 4, + name: '小说页广告', + desc: '小说页面下方出现的条形广告', + quickFind: true, + activityIds: 'com.duokan.reader.DkMainActivity', + rules: + '@ImageView < FrameLayout[id="com.duokan.reader:id/reading__app_ad_view__close"]', + snapshotUrls: 'https://i.gkd.li/import/13497902', + }, + { + key: 5, + name: '小说页全屏卡片广告', + desc: '点击关闭和确定按钮', + quickFind: true, + activityIds: 'com.duokan.reader.DkMainActivity', + rules: [ + { + key: 0, + matches: + '@TextView[id="com.duokan.reader:id/reading__app_ad_view__close"][text="广告"]', + }, + { + preKeys: 0, + matches: + '@TextView[id="com.duokan.reader:id/ad__feedback_close_dialog_button"][text="知道了"]', + }, + ], + snapshotUrls: [ + 'https://i.gkd.li/import/13498048', + 'https://i.gkd.li/import/13497990', + ], + }, ], });