mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-20 00:35:17 +08:00
commit 5ce3e72b682c547c2b1f1d70284c884f81e84caf Author: aisouler <zy43220@gmail.com> Date: Wed Jan 17 14:09:21 2024 +0800 feat(番茄免费小说):分段广告规则优化 commit f6948b33390675fcf0113588c7999a598e31ba35 Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Date: Thu Jan 4 09:07:40 2024 +0000 chore(actions): check_format_lint commit 0c2eafe557c8ba15585fedf69d4d15f873d2198e Author: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Date: Thu Jan 4 09:03:10 2024 +0000 chore(actions): check_format_lint commit bad91d35d889401478be436e11f235d1f25f11bf Author: aisouler <zy43220@gmail.com> Date: Thu Jan 4 17:05:47 2024 +0800 Update com.dragon.read.ts commit 4afd010c5c992bc8c3f1e45caad44a3279fbacba Author: aisouler <zy43220@gmail.com> Date: Thu Jan 4 17:02:32 2024 +0800 feat(番茄免费小说):广告弹窗
180 lines
6.0 KiB
TypeScript
180 lines
6.0 KiB
TypeScript
import { defineAppConfig } from '../types';
|
|
|
|
export default defineAppConfig({
|
|
id: 'com.dragon.read',
|
|
name: '番茄免费小说',
|
|
deprecatedKeys: [-1, 11],
|
|
groups: [
|
|
{
|
|
key: 0,
|
|
name: '卡片式广告',
|
|
activityIds: [
|
|
'com.dragon.read.ad.banner.ui',
|
|
'com.dragon.read.reader.ReaderActivity',
|
|
'com.dragon.read.reader.ui.ReaderActivity',
|
|
],
|
|
rules: [
|
|
{
|
|
key: 0,
|
|
matches: '@[clickable=true] TextView[text="关闭此条广告"]',
|
|
},
|
|
{
|
|
key: 1,
|
|
matches: '@ImageView - LinearLayout TextView[text="广告"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/12908734',
|
|
},
|
|
{
|
|
key: 2,
|
|
matches:
|
|
'FrameLayout > FrameLayout > ViewGroup[childCount=4] > @FrameLayout[clickable=true][visibleToUser=true] > ImageView',
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/import/12716444',
|
|
'https://i.gkd.li/import/13062909', // 误触
|
|
],
|
|
},
|
|
{
|
|
key: 3,
|
|
quickFind: true,
|
|
matches:
|
|
'[id="com.dragon.read:id/layout_banner_ad_bg"] > [id="com.dragon.read:id/close_button"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/13520314',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 1,
|
|
name: '更新弹窗',
|
|
actionMaximum: 1,
|
|
resetMatch: 'app',
|
|
quickFind: true,
|
|
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',
|
|
quickFind: true,
|
|
matches:
|
|
'@LynxFlattenUI[id=null][text=""][clickable=true] - [text="去逛商城"] -4 [text$="电商惊喜券"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/12910159',
|
|
},
|
|
{
|
|
key: 1,
|
|
name: '爆款好物一分购',
|
|
quickFind: true,
|
|
activityIds: 'com.dragon.read.pages.main.MainFragmentActivity',
|
|
matches:
|
|
'@ImageView[clickable=true] <2 LinearLayout[childCount=2] < [id="android:id/content"][childCount=1]',
|
|
snapshotUrls: 'https://i.gkd.li/import/12878266',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
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',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
key: 5,
|
|
name: '分段广告',
|
|
quickFind: true,
|
|
rules: [
|
|
{
|
|
key: 0,
|
|
name: '阅读页面广告弹窗-点击反馈按钮',
|
|
activityIds: 'com.dragon.read.reader.ui.ReaderActivity',
|
|
// 有反馈原规则'[text="反馈"][clickable=true]'不触发删除[clickable=true]才能点击;有反馈原规则点击屏外节点,导致无法执行下一步,遂添加[visibleToUser=true]
|
|
matches: '[text="反馈"][visibleToUser=true]',
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/import/13520160',
|
|
'https://i.gkd.li/import/13843155',
|
|
],
|
|
},
|
|
{
|
|
preKeys: 0,
|
|
key: 1,
|
|
name: '阅读页面广告弹窗-点击不感兴趣',
|
|
activityIds: 'com.dragon.read.reader.ui.ReaderActivity',
|
|
matches: '@ViewGroup[clickable=true] > [text="不感兴趣"]',
|
|
snapshotUrls: [
|
|
'https://i.gkd.li/import/13520219',
|
|
'https://i.gkd.li/import/13674550',
|
|
],
|
|
},
|
|
{
|
|
key: 2,
|
|
name: '阅读页面广告弹窗-点击下一页',
|
|
activityIds: 'com.dragon.read.reader.ui.ReaderActivity',
|
|
matches:
|
|
'[id="com.dragon.read:id/readFlowNonRoundEntranceLayout"] [id="com.dragon.read:id/relativeRight"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/13674556',
|
|
},
|
|
{
|
|
key: 3,
|
|
name: '阅读页面广告弹窗-点击反馈',
|
|
activityIds: 'com.dragon.read.reader.ui.ReaderActivity',
|
|
matches: '[text="看视频免广告"] - [text="反馈"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/13816453',
|
|
},
|
|
{
|
|
preKeys: 3,
|
|
key: 4,
|
|
name: '阅读页面广告弹窗-点击不感兴趣',
|
|
activityIds: 'com.dragon.read.reader.ui.ReaderActivity',
|
|
matches: 'ViewGroup[childCount=2] > [text="不感兴趣"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/13816454',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
enable: false,
|
|
key: 10,
|
|
name: '请求通知权限弹窗',
|
|
desc: '自动点击【取消】',
|
|
activityIds: 'com.dragon.read.widget.ConfirmDialogBuilder',
|
|
rules: '@[text="取消"] < * -2 * > [text="开启推送提醒"]',
|
|
snapshotUrls: 'https://i.gkd.li/import/12716592',
|
|
},
|
|
{
|
|
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',
|
|
},
|
|
],
|
|
});
|