Files
AIsouler-GKD_subscription/src/apps/com.duokan.reader.ts
2024-04-10 14:33:03 +08:00

81 lines
2.2 KiB
TypeScript

import { defineAppConfig } from '../types';
export default defineAppConfig({
id: 'com.duokan.reader',
name: '多看',
groups: [
{
key: 2,
name: '全屏广告-首页弹窗广告',
quickFind: true,
activityIds: 'com.duokan.reader.DkMainActivity',
rules: '[id="com.duokan.reader:id/store_feed_layer_close"]',
snapshotUrls: 'https://i.gkd.li/i/13248773',
},
{
key: 3,
name: '全屏广告-小说推荐弹窗',
rules: [
{
key: 1,
name: '退出阅读时的推荐弹窗',
activityIds: 'com.duokan.reader.DkMainActivity',
quickFind: true,
matches:
'[id="com.duokan.reader:id/reading_stop_read_recommend_stop"]',
snapshotUrls: 'https://i.gkd.li/i/13413412',
},
],
},
{
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/i/13497902',
},
{
key: 5,
name: '分段广告-小说页全屏卡片广告',
desc: '点击关闭和确定按钮',
quickFind: true,
rules: [
{
key: 0,
activityIds: 'com.duokan.reader.DkMainActivity',
matches:
'@TextView[id="com.duokan.reader:id/reading__app_ad_view__close"][text="广告"]',
},
{
key: 1,
matches:
'@TextView[id="com.duokan.reader:id/ad__feedback_close_dialog_button"][text="知道了"]',
},
],
snapshotUrls: [
'https://i.gkd.li/i/13498048',
'https://i.gkd.li/i/13497990',
],
},
{
key: 6,
name: '更新提示',
desc: '点击以后再说',
quickFind: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
rules: [
{
matches:
'[id="com.duokan.reader:id/general__common_dialog_view__button_frame"] >2 [text="以后再说"]',
snapshotUrls: 'https://i.gkd.li/i/14007573',
},
],
},
],
});