-
Notifications
You must be signed in to change notification settings - Fork 152
/
Copy pathcom.autonavi.minimap.ts
217 lines (216 loc) · 7.3 KB
/
com.autonavi.minimap.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
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
import { defineGkdApp } from '@gkd-kit/define';
export default defineGkdApp({
id: 'com.autonavi.minimap',
name: '高德地图',
groups: [
{
key: -1,
name: '开屏广告',
fastQuery: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
priorityTime: 10000,
rules: [
{
matches: '[text*="跳过"][text.length<10][visibleToUser=true]',
exampleUrls: 'https://e.gkd.li/983cc392-1b01-4172-bc1d-2df001baeb3d',
snapshotUrls: 'https://i.gkd.li/i/16490985',
},
],
},
{
key: 1,
name: '更新提示',
fastQuery: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
activityIds: 'com.autonavi.map.activity.NewMapActivity',
rules: [
{
key: 1,
name: '更新弹窗-1',
matches:
'@[id="com.autonavi.minimap:id/iv_close"] + * > [text^="立即升级"]',
snapshotUrls: 'https://i.gkd.li/i/13379094',
},
{
key: 2,
name: '更新弹窗-2',
matches: '@[text="取消"] + * + [text="去下载"]',
snapshotUrls: 'https://i.gkd.li/i/13379426',
},
],
},
{
key: 4,
name: '功能类-截屏分享',
desc: '关闭截屏时app弹出的分享弹窗',
rules: [
{
fastQuery: true,
activityIds: 'com.autonavi.map.activity.NewMapActivity',
matches:
'[text="分享截图至"] < ViewGroup < ViewGroup + @ViewGroup[clickable=true] > ImageView <<n [id="com.autonavi.minimap:id/fragment_container"]',
snapshotUrls: 'https://i.gkd.li/i/13473388',
},
],
},
{
key: 10,
name: '局部广告-首页上方消息提醒',
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
activityIds: 'com.autonavi.map.activity.NewMapActivity',
rules: [
{
key: 1,
matches:
'RelativeLayout[desc="弹窗"] > [id="com.autonavi.minimap:id/msgbox_popup_clear"]',
snapshotUrls: 'https://i.gkd.li/i/12642830',
exampleUrls: 'https://e.gkd.li/a7f72c58-0b31-4b87-9839-567d4d74350a',
},
{
key: 2,
fastQuery: true,
matches: '@ImageView[clickable=true] - [text="广告"]',
snapshotUrls: 'https://i.gkd.li/i/17426322',
exampleUrls: 'https://e.gkd.li/ca2dae5b-10d8-458e-9d83-fe04652ff074',
},
],
},
{
key: 11,
name: '局部广告-首页签到卡片',
desc: '点击"x"',
actionMaximum: 1,
resetMatch: 'app',
activityIds: 'com.autonavi.map.activity.NewMapActivity',
rules:
'ImageView[visibleToUser=true][width<90][height<90] < @ViewGroup -(2) ViewGroup > ViewGroup > View[text*="签到"||text*="成长值"]',
snapshotUrls: [
'https://i.gkd.li/i/12642842',
'https://i.gkd.li/i/12642845',
'https://i.gkd.li/i/12818770', // 限定 ImageView[visibleToUser=true],防止控件不可见时触发规则
'https://i.gkd.li/i/13764540', // 限定 ImageView[width<90][height<90],避免在此误触
],
},
{
key: 12,
name: '全屏广告-加油页面优惠券弹窗',
activityIds: 'com.autonavi.map.activity.NewMapActivity',
rules:
'@ImageView < [desc="关闭"][clickable=true] - ViewGroup > ViewGroup > ViewGroup > View[text="立即领取"]',
snapshotUrls: ['https://i.gkd.li/i/12642857'],
},
{
key: 13,
name: '局部广告-卡片广告',
desc: '点击关闭',
rules: [
{
key: 0,
activityIds: 'com.autonavi.map.activity.NewMapActivity',
matches:
'ViewGroup > ViewGroup > [desc="关闭"][clickable=true][visibleToUser=true]',
exampleUrls:
'https://m.gkd.li/57941037/071a07d2-c760-4f15-9359-f54bf51b6205',
snapshotUrls: 'https://i.gkd.li/i/14715295',
},
{
key: 1,
fastQuery: true,
activityIds: 'com.autonavi.map.activity.NewMapActivity',
matches:
'ViewGroup[desc="图片"][childCount=2] > ViewGroup[clickable=true] > @ImageView[childCount=0] <<n [vid="tab_container_id"]',
exampleUrls: 'https://e.gkd.li/132266f7-b7b8-4cac-9549-bcbe4314c893',
snapshotUrls: 'https://i.gkd.li/i/16960367',
},
{
key: 2,
fastQuery: true,
activityIds: 'com.autonavi.map.activity.NewMapActivity',
matches:
'@ImageView[childCount=0] < ViewGroup[clickable=true] -2 * > View[text^="高德购票" && text$="优惠"] <<n [vid="mapInteractiveRelativeLayout"]',
exampleUrls: 'https://e.gkd.li/59408741-4847-4395-ace5-b1e14ee24cec',
snapshotUrls: 'https://i.gkd.li/i/16960157',
},
{
key: 3,
fastQuery: true,
activityIds: 'com.autonavi.map.activity.NewMapActivity',
matches:
'@[clickable=true] > [visibleToUser=true][text="关闭"] <<n [vid="ajx_view_container"]',
exampleUrls: 'https://e.gkd.li/018aa83b-3f0a-46b4-b084-a5e7a397ca68',
snapshotUrls: 'https://i.gkd.li/i/18627401',
},
],
},
{
key: 14,
name: '全屏广告-弹窗广告',
desc: '点击关闭',
rules: [
{
key: 0,
name: '[欢迎]弹窗',
fastQuery: true,
activityIds: 'com.autonavi.map.activity.NewMapActivity',
matches:
'ViewGroup[childCount=6] >4 ViewGroup[childCount=5] > @ImageView[clickable=true] + View[text!=null] <<n [vid="fragment_container"]',
exampleUrls:
'https://m.gkd.li/57941037/660ef360-eee8-4fb8-9764-7a1822ccb6e9',
snapshotUrls: [
'https://i.gkd.li/i/14800704',
'https://i.gkd.li/i/17079025', // add @ImageView[clickable=true]避免在此误触
],
},
{
key: 1,
name: '签到弹窗',
fastQuery: true,
activityIds: 'com.autonavi.map.activity.NewMapActivity',
matches: '[vid="main_map_msg_dialog_close"]',
exampleUrls:
'https://m.gkd.li/57941037/e059109b-f4bb-4ed6-81a8-6010b51ebfd5',
snapshotUrls: 'https://i.gkd.li/i/14809993',
},
],
},
{
key: 15,
name: '功能类-一键点亮角落',
desc: '点击[一键点亮]',
rules: [
{
fastQuery: true,
activityIds: 'com.autonavi.map.activity.NewMapActivity',
matches:
'[text="一键点亮"] <2 @[clickable=true] <<n [vid="mapInteractiveRelativeLayout"]',
exampleUrls:
'https://m.gkd.li/57941037/1fd33208-e81d-4da6-a23c-4d562a8e0ae0',
snapshotUrls: 'https://i.gkd.li/i/14881505',
},
],
},
{
key: 16,
name: '权限提示-授权蓝牙',
desc: '点击关闭',
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
rules: [
{
fastQuery: true,
activityIds: 'com.autonavi.map.activity.NewMapActivity',
matches: '@ImageView[clickable=true] -2 [text="授权蓝牙"]',
exampleUrls: 'https://e.gkd.li/8aef9184-d2b6-4c49-b729-82e6e76decdc',
snapshotUrls: 'https://i.gkd.li/i/17002003',
},
],
},
],
});