forked from gkd-kit/subscription
-
Notifications
You must be signed in to change notification settings - Fork 0
/
com.tencent.mobileqq.ts
449 lines (447 loc) · 15.1 KB
/
com.tencent.mobileqq.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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
import { defineAppConfig } from '../types';
export default defineAppConfig({
id: 'com.tencent.mobileqq',
name: 'QQ',
deprecatedKeys: [6],
groups: [
{
key: 0,
name: '开屏广告',
quickFind: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
excludeActivityIds: [
'com.tencent.mobileqq.activity.ChatActivity', // 在聊天界面禁用
'com.tencent.mobileqq.search.activity.UniteSearchActivity', // 在搜索页面禁用
],
rules: {
excludeMatches: '[vid="chat_item_content_layout"]', // 在聊天界面禁用
matches: 'TextView[text^="跳过"][text.length<=10][vid!="title"]',
},
snapshotUrls: [
'https://i.gkd.li/import/13062244',
'https://i.gkd.li/import/13093155',
'https://i.gkd.li/import/13207731',
'https://i.gkd.li/import/13217807', // 避免在聊天界面误触
'https://i.gkd.li/import/13856647', // 误触
'https://i.gkd.li/import/13868177', // 误触
],
},
{
enable: false,
key: 1,
name: '消息页面-顶部广告',
desc: '规则误触,待修复,需要快照准确定位', // 当从聊天界面点击链接进入网页时会误触
activityIds: 'com.tencent.mobileqq.activity.SplashActivity',
rules: [
{
key: 0,
matches:
'TextView[text!=null] < LinearLayout + ImageView[desc="关闭"]', // 原@语法会出现两个选项可能会导致误触
snapshotUrls: [
'https://i.gkd.li/import/12892726',
'https://i.gkd.li/import/12774870',
'https://i.gkd.li/import/13207766',
'https://i.gkd.li/import/13386518',
],
},
{
key: 1,
name: '消息页面-顶部惊喜礼包',
matches:
'[text*="惊喜礼包"] + FrameLayout + ImageView[clickable=true]',
snapshotUrls: 'https://i.gkd.li/import/13426912',
},
{
key: 2,
matches:
'ImageView + RelativeLayout[childCount=2] > TextView[text!=null] + ImageView',
snapshotUrls: 'https://i.gkd.li/import/13476400',
},
],
},
{
enable: false,
key: 2,
name: '分段广告-好友动态-广告卡片',
rules: [
{
key: 0,
activityIds: [
'com.tencent.mobileqq.activity.SplashActivity',
'com.qzone.reborn.feedx.activity.QZoneFriendFeedXActivity',
],
matches: 'View[desc="广告"] + ImageView[clickable=true]',
snapshotUrls: [
'https://i.gkd.li/import/12847842',
'https://i.gkd.li/import/13787345',
],
},
{
preKeys: 0,
key: 1,
activityIds: [
'com.qzone.reborn.feedx.activity.QZoneFriendFeedXActivity',
'com.tencent.mobileqq.activity.SplashActivity',
],
quickFind: true,
matches: '@[clickable=true] > ImageView + [text="关闭此条广告"]',
snapshotUrls: [
'https://i.gkd.li/import/12840889',
'https://i.gkd.li/import/13831867', //activityId: 'com.tencent.mobileqq.activity.SplashActivity'
],
},
{
preKeys: 0,
key: 2,
activityIds: [
'com.tencent.mobileqq.activity.SplashActivity',
'com.qzone.reborn.feedx.activity.QZoneFriendFeedXActivity',
],
quickFind: true,
matches: '@[clickable=true] > * > ImageView + [text="隐藏此条动态"]',
snapshotUrls: [
'https://i.gkd.li/import/13761147',
'https://i.gkd.li/import/13849730',
],
},
{
key: 3,
activityIds: [
'com.tencent.mobileqq.activity.SplashActivity',
'com.qzone.reborn.feedx.activity.QZoneFriendFeedXActivity',
],
matches:
'[id="com.tencent.mobileqq:id/tv_name"] + TextView[text="广告"] + @ImageView[clickable=true]',
snapshotUrls: [
'https://i.gkd.li/import/12749584',
'https://i.gkd.li/import/13627967',
],
},
],
},
{
key: 3,
name: '频道页面广告',
rules: [
{
name: '弹窗广告',
quickFind: true,
activityIds: [
'com.tencent.mobileqq.activity.SplashActivity',
'com.tencent.qqlive.module.videoreport.inject.dialog.ReportDialog',
],
matches:
'ImageView[id="com.tencent.mobileqq:id/close"][clickable=true]',
snapshotUrls: [
'https://i.gkd.li/import/13206663', // com.tencent.mobileqq.activity.SplashActivity
'https://i.gkd.li/import/12642081', // com.tencent.qqlive.module.videoreport.inject.dialog.ReportDialog
],
},
{
name: '右侧悬浮广告',
activityIds: 'com.tencent.mobileqq.activity.SplashActivity',
matches:
'FrameLayout[desc="发表帖子"] - LinearLayout[id!=null] >3 ImageView[id!=null][clickable=false] - View[id!=null][clickable=true]',
snapshotUrls: 'https://i.gkd.li/import/12708844',
},
],
},
{
enable: false,
key: 4,
name: '顶部SVIP广告',
desc: '消息界面-搜索框和消息记录之间的广告卡片,点击关闭右侧x',
activityIds: 'com.tencent.mobileqq.activity.SplashActivity',
rules:
'LinearLayout > TextView[text*="SVIP"||text*="超级会员"] + FrameLayout[childCount<=2] + [name$="ImageView"||name$="Button"][id!=null][clickable=true]',
snapshotUrls: [
'https://i.gkd.li/import/12706907',
'https://i.gkd.li/import/13107298',
'https://i.gkd.li/import/12793359',
'https://i.gkd.li/import/12855048',
'https://i.gkd.li/import/13228108',
],
},
{
enable: false,
key: 5,
name: '好友热播',
desc: '好友动态中的好友热播,自动选择“减少好友热播” - 默认关闭',
activityIds: [
'com.qzone.reborn.feedx.activity.QZoneFriendFeedXActivity',
'com.tencent.mobileqq.activity.SplashActivity',
],
rules: [
{
name: '点击[好友热播]卡片右上角菜单按钮',
matches:
'TextView[text="好友热播"] + Button[id^="com.tencent.mobileqq.qzone_df_impl:id/"][clickable=true]',
snapshotUrls: [
'https://i.gkd.li/import/12721427', // com.qzone.reborn.feedx.activity.QZoneFriendFeedXActivity
'https://i.gkd.li/import/12894359', // com.tencent.mobileqq.activity.SplashActivity
],
},
{
name: '点击[减少好友热播]',
matches:
'TextView[text="减少好友热播"] <2 LinearLayout < LinearLayout[id^="com.tencent.mobileqq.qzone_df_impl:id/"][clickable=true]',
snapshotUrls: [
'https://i.gkd.li/import/12721433', // com.qzone.reborn.feedx.activity.QZoneFriendFeedXActivity
'https://i.gkd.li/import/12894375', // com.tencent.mobileqq.activity.SplashActivity
],
},
],
},
{
key: 7,
name: '扫一扫-登录确认',
desc: '自动点击登录。包括 PC 登录确认、QQ 互联登录确认。',
quickFind: true,
rules: [
{
key: 1,
name: 'PC 登录确认',
activityIds: [
'com.tencent.biz.qrcode.activity.QRLoginAuthActivity',
'com.tencent.mobileqq.activity.DevlockQuickLoginActivity',
],
matches:
'TextView[text="登录确认"||text="一键验证"] <n * +n * >n Button[text*="登录"]',
snapshotUrls: [
'https://i.gkd.li/import/13623520',
'https://i.gkd.li/import/12789287',
'https://i.gkd.li/import/13063027',
],
},
{
key: 2,
name: 'QQ 互联登录确认',
activityIds: [
'com.tencent.mobileqq.activity.DevLockQuickVerifyActivity',
],
matches: 'Button[text="拒绝"] - Button[text="登录"]',
snapshotUrls: ['https://i.gkd.li/import/13166314'],
},
],
},
{
enable: false,
key: 8,
name: '消息页面顶部-无法接收新消息通知',
desc: '消息界面-搜索框和消息记录之间的通知卡片,点击关闭右侧x',
activityIds: 'com.tencent.mobileqq.activity.SplashActivity',
rules: 'RelativeLayout > [text^="当前无法接收"] + ImageView',
snapshotUrls: 'https://i.gkd.li/import/12855441',
},
{
key: 9,
name: '我的等级-浮窗广告',
activityIds: 'com.tencent.mobileqq.activity.QQBrowserActivity',
rules:
'TextView[text="QQ等级规则"] + View > TextView[id=null&&text.length=0]',
snapshotUrls: 'https://i.gkd.li/import/12914734',
},
{
enable: false,
key: 10,
name: '自动勾选原图',
desc: '发送图片时自动勾选原图',
activityIds: [
'com.tencent.mobileqq.activity.SplashActivity',
'com.tencent.qqnt.qbasealbum.WinkHomeActivity',
'com.tencent.mobileqq.activity.photo.album.NewPhotoListActivity',
],
rules: '@CheckBox[checked=false] + [text="原图"]',
snapshotUrls: [
'https://i.gkd.li/import/12705556', // 未勾选原图
'https://i.gkd.li/import/12705559', // 已勾选原图
'https://i.gkd.li/import/13295142', // com.tencent.qqnt.qbasealbum.WinkHomeActivity
'https://i.gkd.li/import/13476247', // com.tencent.mobileqq.activity.photo.album.NewPhotoListActivity
],
},
{
enable: false,
key: 11,
name: '自动查看原图',
desc: '查看图片时自动点击原图',
activityIds: 'com.tencent.richframework.gallery.QQGalleryActivity',
rules: '[desc="查看原图"][checked=false]',
snapshotUrls: [
'https://i.gkd.li/import/12840632', // 点击原图前
'https://i.gkd.li/import/12840633', // 点击原图后
],
},
{
enable: false,
key: 12,
name: 'QQ小世界评论区广告',
desc: '点击广告-弹出原因框-关闭此条广告',
activityIds: [
'com.tencent.mobileqq.activity.SplashActivity',
'com.tencent.biz.qqcircle.activity.QCircleFolderActivity',
],
rules: [
{
key: 0,
matches:
'RelativeLayout[childCount=5] > @LinearLayout[clickable=true][childCount=2][id!=null] > TextView[text="广告"][id!=null]',
snapshotUrls: 'https://i.gkd.li/import/12847819',
},
{
preKeys: 0,
matches:
'@LinearLayout[clickable=true] > TextView[text="关闭此条广告"]',
snapshotUrls: 'https://i.gkd.li/import/12847821',
},
],
},
{
key: 13,
name: 'QQ小程序开屏广告',
desc: '点击右下角跳过',
activityIds: [
'com.tencent.mobileqq.mini.appbrand.ui.AppBrandUI',
'com.tencent.mobileqq.activity.miniaio.MiniChatActivity',
],
rules: [
{
matches:
'TextView[text = "广告"] < RelativeLayout + RelativeLayout TextView[text = "跳过"]',
snapshotUrls: [
'https://i.gkd.li/import/12877215',
'https://i.gkd.li/import/12919195',
],
},
],
},
{
key: 14,
name: '黄钻-弹窗广告',
activityIds: 'com.tencent.mobileqq.activity.QQBrowserActivity',
rules:
'TextView[text.length=0&&clickable=true&&visibleToUser=true] + View > Button[text.length=0&&focusable=true]',
snapshotUrls: [
'https://i.gkd.li/import/12914978',
'https://i.gkd.li/import/12914886',
],
},
{
enable: false,
key: 15,
name: '好友动态-为你推荐',
quickFind: true,
activityIds: [
'com.tencent.mobileqq.activity.SplashActivity',
'com.qzone.reborn.feedx.activity.QZoneFriendFeedXActivity',
],
rules: [
{
key: 0,
matches: '@ImageView[clickable=true] - [text="为你推荐"]',
snapshotUrls: [
'https://i.gkd.li/import/12929620',
'https://i.gkd.li/import/13387606', // activityIds: 'com.qzone.reborn.feedx.activity.QZoneFriendFeedXActivity',
],
},
{
preKeys: 0,
key: 1,
matches:
'@LinearLayout[id!=null][clickable=true] > LinearLayout > [text="减少此类推荐"]',
snapshotUrls: [
'https://i.gkd.li/import/12929619',
'https://i.gkd.li/import/13387605', //
],
},
],
},
{
key: 17,
name: '更新弹窗',
actionMaximum: 1,
resetMatch: 'app',
rules: '@[desc="关闭"] - ViewGroup > [text="立即体验"||text="立即升级"]',
snapshotUrls: [
'https://i.gkd.li/import/13188721',
'https://i.gkd.li/import/13386719',
'https://i.gkd.li/import/13459507',
],
},
{
enable: false,
key: 18,
name: '更新提示-消息页面-顶部',
rules: [
{
key: 0,
activityIds: 'com.tencent.mobileqq.activity.SplashActivity',
quickFind: true,
matches: '[id="com.tencent.mobileqq:id/iyx"]',
snapshotUrls: [
'https://i.gkd.li/import/13188722',
'https://i.gkd.li/import/13255493', //desc值为null快照
'https://i.gkd.li/import/13843140', //关系选择器为-2快照
],
},
{
key: 1,
activityIds: 'com.tencent.mobileqq.activity.SplashActivity',
matches:
'[text="发现QQ版本更新"] + [text="点击下载"] + ImageView[clickable=true]',
snapshotUrls: 'https://i.gkd.li/import/13931212',
},
],
},
{
enable: false,
key: 19,
name: '内测邀请弹窗',
quickFind: true,
activityIds: 'com.tencent.mobileqq.activity.SplashActivity',
rules: [
{
key: 0,
matches: '@ImageView[desc="关闭"] <2 * >2 [text="QQ测试版"]',
snapshotUrls: 'https://i.gkd.li/import/13526551',
},
],
},
{
enable: false,
key: 20,
name: '钱包-卡片广告',
quickFind: true,
activityIds: 'com.tencent.mobileqq.activity.SplashActivity',
rules: [
{
key: 0,
matches: 'ViewGroup[childCount=6] > [text="广告"]',
snapshotUrls: ['https://i.gkd.li/import/13695087'],
},
{
preKeys: 0,
key: 1,
matches: '@LinearLayout > [text="关闭此条广告"]',
snapshotUrls: ['https://i.gkd.li/import/13699701'],
},
],
},
{
key: 21,
name: '首页广告弹窗',
rules: [
{
key: 0,
name: '元梦之星广告弹窗',
activityIds:
'com.tencent.mobileqq.activity.QPublicTransFragmentActivity',
matches:
'ViewGroup[childCount=2] > ViewGroup[childCount=3][index=1] > ViewGroup[clickable=true][visibleToUser=true][index=1][childCount=0]',
snapshotUrls: 'https://i.gkd.li/import/13797876',
},
],
},
],
});