mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-23 10:15:31 +08:00
feat(我的听书): 开屏广告(优化规则)、卡片式广告(优化规则) (#2079)
* feat 开屏广告(优化规则) * feat 卡片式广告(优化规则)
This commit is contained in:
@@ -7,19 +7,35 @@ export default defineAppConfig({
|
||||
{
|
||||
key: 0,
|
||||
name: '开屏广告',
|
||||
activityIds: 'com.github.eprendre.tingshu.ui.SplashActivity',
|
||||
rules:
|
||||
'[id="com.github.eprendre.tingshu:id/frame_layout"] >n [text^="跳过"]',
|
||||
quickFind: true,
|
||||
matchTime: 10000,
|
||||
actionMaximum: 1,
|
||||
resetMatch: 'app',
|
||||
rules: '[text^="跳过"][text.length<=10]',
|
||||
snapshotUrls: 'https://i.gkd.li/import/12783430',
|
||||
},
|
||||
{
|
||||
key: 1,
|
||||
name: '搜索结果底部广告',
|
||||
name: '卡片式广告',
|
||||
rules: [
|
||||
{
|
||||
key: 0,
|
||||
name: '搜索结果底部广告卡片',
|
||||
activityIds:
|
||||
'com.github.eprendre.tingshu.ui.search.AggregateSearchActivity',
|
||||
rules:
|
||||
'[id="com.github.eprendre.tingshu:id/banner_container"] >n FrameLayout > ImageView +2 FrameLayout > ImageView',
|
||||
matches:
|
||||
'ImageView - FrameLayout - FrameLayout[childCount=1] > ImageView[childCount=0]',
|
||||
snapshotUrls: 'https://i.gkd.li/import/12783466',
|
||||
},
|
||||
{
|
||||
key: 1,
|
||||
name: '播放页面广告卡片',
|
||||
activityIds: 'com.github.eprendre.tingshu.ui.play.PlayerActivity',
|
||||
matches:
|
||||
'ImageView + LinearLayout + LinearLayout + FrameLayout[childCount=1] > ImageView[childCount=0]',
|
||||
snapshotUrls: 'https://i.gkd.li/import/13334850',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user