mirror of
https://github.com/AIsouler/GKD_subscription.git
synced 2025-12-21 01:04:53 +08:00
feat(UC浏览器): 信息流广告-规则优化,通知权限弹窗,桌面快捷方式权限弹窗 (#962)
* feat 信息流广告(优化规则) * feat 请求通知权限弹窗 * feat 请求添加桌面快捷方式权限弹窗
This commit is contained in:
@@ -13,12 +13,46 @@ export default defineAppConfig({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 0,
|
key: 0,
|
||||||
name: '推荐页广告',
|
name: '信息流广告',
|
||||||
activityIds: 'com.uc.browser.InnerUCMobile',
|
activityIds: 'com.uc.browser.InnerUCMobile',
|
||||||
rules: [
|
rules: [
|
||||||
'TextView[text=`屏蔽此条广告`]',
|
{
|
||||||
'TextView[text=`广告`] +n ImageView[desc=`不感兴趣`]',
|
key: 0,
|
||||||
|
matches:
|
||||||
|
'TextView[text="广告"] +n ImageView[desc="不感兴趣"][visibleToUser=true]',
|
||||||
|
snapshotUrls: [
|
||||||
|
'https://gkd-kit.songe.li/import/12880737',
|
||||||
|
'https://gkd-kit.songe.li/import/12881751', // 限定 visibleToUser=true,尽量减少对正常浏览信息的干扰
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
preKeys: [0],
|
||||||
|
key: 1,
|
||||||
|
matches: '[text^="屏蔽"][text$="广告"]',
|
||||||
|
snapshotUrls: [
|
||||||
|
'https://gkd-kit.songe.li/import/12880772',
|
||||||
|
'https://gkd-kit.songe.li/import/12881307',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 10,
|
||||||
|
name: '请求通知权限弹窗',
|
||||||
|
activityIds: 'com.uc.browser.InnerUCMobile',
|
||||||
|
matchLauncher: true,
|
||||||
|
rules: '@ImageView - LinearLayout >n [text="开启消息通知"]',
|
||||||
|
snapshotUrls: [
|
||||||
|
'https://gkd-kit.songe.li/import/12880812',
|
||||||
|
'https://gkd-kit.songe.li/import/12880802',
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: 11,
|
||||||
|
name: '请求添加桌面快捷方式权限弹窗',
|
||||||
|
activityIds: 'com.uc.browser.InnerUCMobile',
|
||||||
|
rules: '@ImageView + [text^="添加"][text$="到桌面"]',
|
||||||
|
snapshotUrls: 'https://gkd-kit.songe.li/import/12880983',
|
||||||
|
},
|
||||||
|
],
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user