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', + ], + }, ], });