forked from gkd-kit/subscription
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcom.UCMobile.ts
58 lines (57 loc) · 1.61 KB
/
com.UCMobile.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import { defineAppConfig } from '../types';
export default defineAppConfig({
id: 'com.UCMobile',
name: 'UC浏览器',
groups: [
{
key: -1,
name: '开屏广告',
desc: '空规则组-待实现',
activityIds: 'com.uc.browser.InnerUCMobile',
// TODO
},
{
key: 0,
name: '信息流广告',
activityIds: 'com.uc.browser.InnerUCMobile',
rules: [
{
key: 0,
matches:
'TextView[text="广告"] +n ImageView[desc="不感兴趣"][visibleToUser=true]',
snapshotUrls: [
'https://i.gkd.li/import/12880737',
'https://i.gkd.li/import/12881751', // 限定 visibleToUser=true,尽量减少对正常浏览信息的干扰
],
},
{
preKeys: [0],
key: 1,
matches: '[text^="屏蔽"][text$="广告"]',
snapshotUrls: [
'https://i.gkd.li/import/12880772',
'https://i.gkd.li/import/12881307',
],
},
],
},
{
key: 10,
name: '请求通知权限弹窗',
activityIds: 'com.uc.browser.InnerUCMobile',
matchLauncher: true,
rules: '@ImageView - LinearLayout >n [text="开启消息通知"]',
snapshotUrls: [
'https://i.gkd.li/import/12880812',
'https://i.gkd.li/import/12880802',
],
},
{
key: 11,
name: '请求添加桌面快捷方式权限弹窗',
activityIds: 'com.uc.browser.InnerUCMobile',
rules: '@ImageView + [text^="添加"][text$="到桌面"]',
snapshotUrls: 'https://i.gkd.li/import/12880983',
},
],
});