mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-20 00:35:17 +08:00
* Update com.dragon.read.ts * chore(actions): check_format_lint --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> close #2233
130 lines
4.0 KiB
TypeScript
130 lines
4.0 KiB
TypeScript
import { defineAppConfig } from '../types';
|
|
|
|
export default defineAppConfig({
|
|
id: 'com.dragon.read',
|
|
name: '番茄免费小说',
|
|
groups: [
|
|
{
|
|
key: -1,
|
|
name: '开屏广告',
|
|
matchTime: 10000,
|
|
actionMaximum: 1,
|
|
resetMatch: 'app',
|
|
quickFind: true,
|
|
rules: [
|
|
{
|
|
matches: '[text="跳过广告"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/13210844',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 0,
|
|
name: '阅读页面底部广告',
|
|
activityIds: [
|
|
'com.dragon.read.ad.banner.ui',
|
|
'com.dragon.read.reader.ReaderActivity',
|
|
'com.dragon.read.reader.ui.ReaderActivity',
|
|
],
|
|
rules: [
|
|
{
|
|
matches: '@[clickable=true] TextView[text="关闭此条广告"]',
|
|
},
|
|
{
|
|
matches: '@ImageView - LinearLayout TextView[text="广告"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/12908734',
|
|
},
|
|
{
|
|
matches:
|
|
'[id="com.dragon.read:id/root_view"] >n ViewGroup[childCount=4] > @FrameLayout[id!=null][clickable=true][childCount=1] > ImageView[visibleToUser=true]',
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/import/12716444',
|
|
'https://i.gkd.li/import/13062909', // 误触
|
|
],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 1,
|
|
name: '更新弹窗',
|
|
activityIds: 'com.dragon.read.update',
|
|
rules: '@[text="以后再说"] + [text="优先体验"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/12716477',
|
|
},
|
|
{
|
|
key: 2,
|
|
name: '首页右侧悬浮广告',
|
|
activityIds: [
|
|
'com.dragon.read.pages.main.MainFragmentActivity',
|
|
'com.dragon.read.ad.openingscreenad.OpeningScreenADActivity',
|
|
],
|
|
rules: [
|
|
{
|
|
matches:
|
|
'[id="android:id/content"] > FrameLayout[childCount=1] > RelativeLayout[childCount=1] >2 ImageView[id!=null][clickable=true]',
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/import/12716506', //relativeLayout和ImageView之间是RelativeLayoutRelativeLayout
|
|
'https://i.gkd.li/import/13318796', //relativeLayout和ImageView之间是ViewGroup
|
|
],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 3,
|
|
name: '优惠券弹窗',
|
|
rules: [
|
|
{
|
|
key: 0,
|
|
name: '电商惊喜券',
|
|
activityIds: 'com.dragon.read.pages.main.MainFragmentActivity',
|
|
matches:
|
|
'@LynxFlattenUI[id=null][text=""][clickable=true] - [text="去逛商城"] -4 [text$="电商惊喜券"] ',
|
|
snapshotUrls: 'https://i.gkd.li/import/12910159',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 4,
|
|
name: '阅读页面_关注作者',
|
|
quickFind: true,
|
|
rules: [
|
|
{
|
|
key: 0,
|
|
activityIds: 'com.dragon.read.reader.ui.ReaderActivity',
|
|
matches: '@ImageView +2 FrameLayout >3 [text="关注"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/13399505',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
enable: false,
|
|
key: 10,
|
|
name: '请求通知权限弹窗',
|
|
desc: '自动点击【取消】',
|
|
activityIds: 'com.dragon.read.widget.ConfirmDialogBuilder',
|
|
rules:
|
|
'@[text="取消"] < LinearLayout -2 LinearLayout > [text="开启推送提醒"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/12716592',
|
|
},
|
|
{
|
|
key: 11,
|
|
name: '广告弹窗',
|
|
desc: '点击底部圆形x图标',
|
|
quickFind: true,
|
|
activityIds: 'com.dragon.read.pages.main.MainFragmentActivity',
|
|
rules:
|
|
'@ImageView[clickable=true] <2 LinearLayout[childCount=2] < [id="android:id/content"][childCount=1]',
|
|
snapshotUrls: 'https://i.gkd.li/import/12878266',
|
|
},
|
|
{
|
|
key: 12,
|
|
name: '关闭阅读-全屏广告',
|
|
desc: '点击右上角【关闭】',
|
|
quickFind: true,
|
|
activityIds: 'com.dragon.read.reader.ui.ReaderActivity',
|
|
rules: 'TextView[text="广告"] +2 Button[id="com.dragon.read:id/close"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/13191156',
|
|
},
|
|
],
|
|
});
|