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