mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-21 09:15:11 +08:00
feat(Keep): 青少年模式弹窗(优化规则)、首页广告弹窗(优化规则)、请求开启通知权限弹窗 (#3415)
* feat 青少年模式弹窗(优化规则) * feat 首页广告弹窗(优化规则) * feat 请求开启通知权限弹窗
This commit is contained in:
@@ -25,20 +25,28 @@ export default defineAppConfig({
|
|||||||
{
|
{
|
||||||
key: 1,
|
key: 1,
|
||||||
name: '青少年模式弹窗',
|
name: '青少年模式弹窗',
|
||||||
activityIds:
|
actionMaximum: 1,
|
||||||
'com.gotokeep.keep.refactor.business.main.activity.MainActivity',
|
resetMatch: 'app',
|
||||||
rules:
|
quickFind: true,
|
||||||
'[text$="未成年人模式"] + ImageView + ViewGroup > [text="我知道了"]',
|
rules: '[text$="未成年人模式"] +2 @[clickable=true] > [text="我知道了"]',
|
||||||
snapshotUrls: 'https://i.gkd.li/import/12706097',
|
snapshotUrls: 'https://i.gkd.li/import/12706097',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 2,
|
key: 2,
|
||||||
name: '首页广告弹窗',
|
name: '首页广告弹窗',
|
||||||
|
rules: [
|
||||||
|
{
|
||||||
|
key: 0,
|
||||||
activityIds:
|
activityIds:
|
||||||
'com.gotokeep.keep.refactor.business.main.activity.MainActivity',
|
'com.gotokeep.keep.refactor.business.main.activity.MainActivity',
|
||||||
rules:
|
matches:
|
||||||
'[id="com.gotokeep.keep:id/layoutLottie"] + [id="com.gotokeep.keep:id/imgCloseHomePageDialog"]',
|
'[id="com.gotokeep.keep:id/layoutLottie"] +(1,2) [id="com.gotokeep.keep:id/imgCloseHomePageDialog"]',
|
||||||
snapshotUrls: 'https://i.gkd.li/import/12706102',
|
snapshotUrls: [
|
||||||
|
'https://i.gkd.li/import/12706102',
|
||||||
|
'https://i.gkd.li/import/13761641',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 3,
|
key: 3,
|
||||||
@@ -57,5 +65,14 @@ export default defineAppConfig({
|
|||||||
rules: 'ImageView + LinearLayout > ImageView[id=null][clickable=true]',
|
rules: 'ImageView + LinearLayout > ImageView[id=null][clickable=true]',
|
||||||
snapshotUrls: 'https://i.gkd.li/import/12706111',
|
snapshotUrls: 'https://i.gkd.li/import/12706111',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
key: 5,
|
||||||
|
name: '请求开启通知权限弹窗',
|
||||||
|
actionMaximum: 1,
|
||||||
|
resetMatch: 'app',
|
||||||
|
quickFind: true,
|
||||||
|
rules: '@[text="暂不开启"] +2 [text="开启通知权限"]',
|
||||||
|
snapshotUrls: 'https://i.gkd.li/import/13761671',
|
||||||
|
},
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user