-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcom.huawei.browser.ts
More file actions
85 lines (84 loc) · 2.29 KB
/
Copy pathcom.huawei.browser.ts
File metadata and controls
85 lines (84 loc) · 2.29 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import { defineGkdApp } from '@gkd-kit/define';
export default defineGkdApp({
id: 'com.huawei.browser',
name: '浏览器',
groups: [
{
key: 1,
name: '掌上周五红包雨1,立即领取',
desc: '260602',
rules: [
{
actionMaximum: 1,
resetMatch: 'match',
activityIds: 'com.huawei.browser.BrowserMainActivity',
matches:
'[text*="红包雨"] [id="app"] > [desc="picture"][clickable=true][visibleToUser=true]',
},
],
},
{
key: 2,
name: '掌上周五红包雨2,有的打开',
desc: '260602',
rules: [
{
order: -1,
actionMaximum: 1,
actionCd: 0,
resetMatch: 'match',
activityIds: 'com.huawei.browser.BrowserMainActivity',
matches:
'[text="提示"] +n * > @[text="有的,打开"] + [text="我要下载"]',
},
],
},
{
key: 3,
name: '掌上周五红包雨3,此网站请求打开 App,打开',
desc: '260602',
rules: [
{
order: -2,
actionCd: 0,
actionMaximum: 1,
resetMatch: 'match',
fastQuery: true,
activityIds: 'com.huawei.browser.BrowserMainActivity',
matches:
'[vid="tv_snack_bar_main_title"][text^="此网站请求打开"] < * + * > @*[clickable=true] > [text="打开"]',
},
],
},
{
key: 4,
name: '掌上周五红包雨2,立 即 打 开',
desc: '260602',
rules: [
{
actionMaximum: 1,
actionCd: 0,
order: -1,
resetMatch: 'match',
activityIds: 'com.huawei.browser.BrowserMainActivity',
matches:
'[text="掌上生活"] + * [id="invokeButton"][text="立 即 打 开"]',
},
],
},
{
key: 5,
name: '确认下载弹窗,下载',
desc: '260410',
rules: [
{
resetMatch: 'match',
fastQuery: true,
activityIds: 'com.huawei.browser.download.DownloadRecordsActivity',
matches:
'[id="android:id/alertTitle"][text="下载"] <<n * +n * [id="android:id/button3"][text="取消"] + [id="android:id/button1"][text="下载"]',
},
],
},
],
});