Fix(番茄免费小说):广告弹窗 (#3159)

close #2959
close #3063
close #2931
close #3182
This commit is contained in:
jiuqianyuan 2023-12-15 19:36:44 +08:00 committed by GitHub
parent 45393f61c2
commit a3840662fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -122,12 +122,14 @@ export default defineAppConfig({
{
key: 5,
name: '广告弹窗',
quickFind: true,
rules: [
{
key: 0,
name: '阅读页面广告弹窗-点击反馈按钮',
activityIds: 'com.dragon.read.reader.ui.ReaderActivity',
matches: '[text="反馈"][clickable=true]',
// 有反馈原规则'[text="反馈"][clickable=true]'不触发删除[clickable=true]才能点击;有反馈原规则点击屏外节点,导致无法执行下一步,遂添加[visibleToUser=true]
matches: 'FlattenUIText[text="反馈"][visibleToUser=true]',
snapshotUrls: 'https://i.gkd.li/import/13520160',
},
{
@ -135,9 +137,19 @@ export default defineAppConfig({
key: 1,
name: '阅读页面广告弹窗-点击不感兴趣',
activityIds: 'com.dragon.read.reader.ui.ReaderActivity',
quickFind: true,
matches: '[id="com.dragon.read:id/ad_feedback_not_interest"]',
snapshotUrls: 'https://i.gkd.li/import/13520219',
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',
},
],
},