You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
得间免费小说广告跳过规则问题分析与解决方案
问题描述
在为得间免费小说应用编写 GKD 广告跳过规则时,我遇到了几个关键的技术挑战:
1. 蜜罐关闭按钮陷阱
应用设置了智能的蜜罐关闭按钮,具体表现为:
close_2元素时,这是蜜罐,点击后会触发更多广告或不良行为_2(不以close开头)2. 广告文字匹配问题
在章节插页广告中发现了特定的广告文字:
当前的文字匹配规则需要改进,应该使用部分匹配而非全字匹配,以应对文字变体。
当前接近预期目标的规则
{ id: 'com.chaozh.iReader.dj', name: '得间免费小说', groups: [ { key: 0, name: '全屏弹窗广告-2025-04-01 05:35:00', desc: '关闭全屏弹窗广告,包括AQ健康、微粒贷等应用推广', rules: [ { fastQuery: true, activityIds: 'com.zhangyue.iReader.ui.activity.ActivityContainer', matches: '[id="com.zhangyue.module.ad:id/close"][text="关闭"]', snapshotUrls: [ 'https://i.gkd.li/i/14881986', // 微粒贷广告 'https://i.gkd.li/i/14881987', // AQ健康广告 'https://i.gkd.li/i/14881988' // 审核通过广告 ], }, ], }, { key: 1, name: '时长用尽弹窗-2025-04-01 05:35:00', desc: '关闭免费时长用尽后出现的看广告加时长弹窗', rules: [ { fastQuery: true, activityIds: 'com.zhangyue.iReader.ui.activity.ActivityContainer', matches: '[id="com.chaozh.iReader.dj:id/Id_dialog_close_iv"]', snapshotUrls: 'https://i.gkd.li/i/14881985', }, ], }, { key: 2, name: '底部横幅广告-2025-04-01 05:35:00', desc: '关闭阅读页面底部的横幅广告', rules: [ { fastQuery: true, activityIds: 'com.zhangyue.iReader.ui.activity.ActivityContainer', matches: '[id="com.zhangyue.module.ad:id/mix_ad_view"] > [id="com.zhangyue.module.ad:id/close"][text="关闭"]', snapshotUrls: 'https://i.gkd.li/i/14881989', }, ], }, { key: 3, name: '章节阅读页-插屏广告-2024-12-20', desc: '自动点击章节阅读页中的插屏广告关闭按钮', rules: [ { activityIds: 'com.zhangyue.iReader.read.ui.Activity_BookBrowser_TXT', matches: '[id="com.zhangyue.module.ad:id/close"]', snapshotUrls: [ 'https://i.gkd.li/i/1763635108226', 'https://i.gkd.li/i/1763635113643' ], }, ], }, { key: 4, name: '章节阅读页-底部横幅广告-2024-12-20', desc: '自动点击章节阅读页底部的横幅广告关闭按钮', rules: [ { activityIds: 'com.zhangyue.iReader.read.ui.Activity_BookBrowser_TXT', matches: '[id="com.zhangyue.module.ad:id/ad_close_2"]', snapshotUrls: [ 'https://i.gkd.li/i/1763635108226', 'https://i.gkd.li/i/1763635113643' ], }, ], }, ], } }当前面临的技术挑战
1. 蜜罐检测逻辑不稳定
[id$="_2"][id!*="close"]选择器在某些情况下可能不够精确2. 文字匹配可能过于宽泛
[text*="广告"][clickable=true]可能会匹配到非广告元素3. 需要更精细的条件判断
环境信息
##快照
-: https://i.gkd.li/i/23651719
: https://i.gkd.li/i/23651723
: https://i.gkd.li/i/23651726
: https://i.gkd.li/i/23651729
: https://i.gkd.li/i/23651731
: https://i.gkd.li/i/23651744
: https://i.gkd.li/i/23655744
: https://i.gkd.li/i/23655765
: https://i.gkd.li/i/23655770
Beta Was this translation helpful? Give feedback.
All reactions