forked from gkd-kit/subscription
-
Notifications
You must be signed in to change notification settings - Fork 0
/
com.tencent.qqlive.ts
236 lines (235 loc) · 7.97 KB
/
com.tencent.qqlive.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
import { defineAppConfig } from '../types';
export default defineAppConfig({
id: 'com.tencent.qqlive',
name: '腾讯视频',
deprecatedKeys: [5, 19],
groups: [
{
key: 0,
name: '开屏广告',
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
quickFind: true,
rules: [
{
action: 'clickCenter',
matches: 'FrameLayout[id=null] > TextView[text="跳过"][id=null]',
snapshotUrls: [
'https://i.gkd.li/import/12700227',
'https://i.gkd.li/import/12700122',
'https://i.gkd.li/import/12700541',
'https://i.gkd.li/import/12910953',
],
},
],
},
{
key: 1,
name: '青少年模式弹窗',
actionMaximum: 1,
resetMatch: 'app',
quickFind: true,
rules: 'TextView[text*="青少年模式"] +n TextView[text="我知道了"]',
snapshotUrls: 'https://i.gkd.li/import/12700145',
},
{
key: 2,
name: '更新弹窗',
actionMaximum: 1,
resetMatch: 'app',
rules:
'[text^="有新版本"] + FrameLayout + LinearLayout + [text="暂不升级"]',
snapshotUrls: [
'https://i.gkd.li/import/12700486',
'https://i.gkd.li/import/13799951',
],
},
{
key: 3,
name: '卡片式广告',
rules: [
{
key: 0,
name: '首页顶部卡片广告',
activityIds: 'com.tencent.qqlive.ona.activity.SplashHomeActivity',
matches:
'FrameLayout - RelativeLayout > RelativeLayout > FrameLayout + ImageView[clickable=true][childCount=0][visibleToUser=true]',
snapshotUrls: [
'https://i.gkd.li/import/12700299',
'https://i.gkd.li/import/12700302',
'https://i.gkd.li/import/13685929', // 限定 visibleToUser=true 防止误触
],
},
{
key: 1,
name: '首页顶部背景广告',
activityIds: 'com.tencent.qqlive.ona.activity.SplashHomeActivity',
matches: '[text="关闭广告"][clickable=true]',
snapshotUrls: 'https://i.gkd.li/import/12700518',
},
{
key: 2,
name: '个人中心页卡片广告',
activityIds: [
'com.tencent.qqlive.ona.activity.SplashHomeActivity',
'com.tencent.qqlive.ona.offline.client.group.DownloadGroupActivity',
],
matches:
'ViewGroup > TextView + LinearLayout[childCount=2] + ImageView[clickable=true]',
snapshotUrls: [
'https://i.gkd.li/import/12700175',
'https://i.gkd.li/import/13759380',
],
},
{
key: 3,
name: '个人中心页顶部背景广告',
activityIds: 'com.tencent.qqlive.ona.activity.SplashHomeActivity',
matches:
'RelativeLayout > FrameLayout + @ImageView[clickable=true] + ImageView + ImageView',
snapshotUrls: 'https://i.gkd.li/import/12777344',
},
{
key: 4,
name: '点击右上角[广告]',
activityIds: [
'com.tencent.qqlive.ona.activity.SplashHomeActivity',
'com.tencent.qqlive.ona.activity.VideoDetailActivity',
],
matches:
'RelativeLayout[id=null] > @FrameLayout[clickable=true][id!=null] > ImageView[desc="the ad tag"]',
snapshotUrls: [
'https://i.gkd.li/import/12737313',
'https://i.gkd.li/import/13685842',
],
},
{
key: 5,
name: '点击右下角关闭',
matches:
'ImageView[childCount=0] <<2 RelativeLayout + FrameLayout + RelativeLayout > RelativeLayout > RelativeLayout > ImageView',
snapshotUrls: 'https://i.gkd.li/import/13426421',
},
// 以下是配合本规则组内其他key使用的规则,反馈界面的规则都是一样的
{
key: 97,
name: '广告反馈卡片-点击不感兴趣',
activityIds: 'com.tencent.qqlive.ona.activity.SplashHomeActivity',
matches: 'LinearLayout > [text="不感兴趣"]',
snapshotUrls: 'https://i.gkd.li/import/13695084',
},
{
key: 98,
name: '广告反馈卡片-选择原因',
quickFind: true,
activityIds: [
'com.tencent.qqlive.qaduikit.common.dialog.feedback.variable.QAdFeedbackVariableDislikeItemDialog',
'com.tencent.qqlive.ona.activity.SplashHomeActivity',
'com.tencent.qqlive.ona.activity.VideoDetailActivity',
'com.tencent.qqlive.ona.offline.client.group.DownloadGroupActivity',
],
matches:
'[text="关闭这条广告的原因"] +(2) RecyclerView > [text="不感兴趣"]',
snapshotUrls: [
'https://i.gkd.li/import/12700303',
'https://i.gkd.li/import/12829866',
'https://i.gkd.li/import/13685871',
'https://i.gkd.li/import/13703219',
],
},
{
preKeys: [98],
key: 99,
name: '广告反馈卡片-确认原因',
quickFind: true,
activityIds: [
'com.tencent.qqlive.qaduikit.common.dialog.feedback.variable.QAdFeedbackVariableDislikeItemDialog',
'com.tencent.qqlive.ona.activity.SplashHomeActivity',
'com.tencent.qqlive.ona.activity.VideoDetailActivity',
'com.tencent.qqlive.ona.offline.client.group.DownloadGroupActivity',
],
matches:
'[text="关闭这条广告的原因"] + [text="确认"][clickable=true]',
snapshotUrls: [
'https://i.gkd.li/import/12700210',
'https://i.gkd.li/import/13685877',
'https://i.gkd.li/import/13703298',
],
},
],
},
{
key: 4,
name: '视频播放时的广告',
desc: '自动点击 跳过广告',
activityIds: 'com.tencent.qqlive.ona.activity.VideoDetailActivity',
rules: [
{
key: 0,
name: '全屏广告',
quickFind: true,
matches:
'@[text$="跳过广告"][clickable=true] < LinearLayout > [text="VIP可关闭该广告"]',
snapshotUrls: [
'https://i.gkd.li/import/12700407',
'https://i.gkd.li/import/12700433',
],
},
{
key: 1,
name: '左下角悬浮广告',
matches:
'FrameLayout[childCount=2] > FrameLayout > RelativeLayout > View[id!=null][clickable=true]',
snapshotUrls: 'https://i.gkd.li/import/13043079',
},
{
key: 2,
name: '全屏广告2',
quickFind: true,
matches: '@[text$="关闭广告"][clickable=true]',
snapshotUrls: 'https://i.gkd.li/import/13526547',
},
{
key: 3,
name: '居中广告',
matches:
'FrameLayout[childCount=4] > ImageView + FrameLayout + FrameLayout + ImageView[clickable=true]',
snapshotUrls: 'https://i.gkd.li/import/13695067',
},
],
},
{
key: 6,
name: '全屏广告-首页-广告弹窗',
resetMatch: 'app',
actionMaximum: 1,
quickFind: true,
activityIds: 'com.tencent.qqlive.redpacket.rain.OpenRedPacketActivity',
rules:
'@ImageView[clickable=true] < ViewGroup[childCount=5] < [id="android:id/content"]',
snapshotUrls: 'https://i.gkd.li/import/13842643',
},
{
enable: false,
key: 20,
name: '请求通知权限弹窗',
resetMatch: 'app',
rules: [
{
key: 0,
actionMaximum: 1,
quickFind: true,
matches: 'LinearLayout > @[text="以后再说"] + [text="好的"]',
snapshotUrls: 'https://i.gkd.li/import/12700139',
},
{
key: 1,
actionMaximumKey: 0,
matches: '@ImageView + * > [text^="开启通知"]',
snapshotUrls: 'https://i.gkd.li/import/13670465',
},
],
},
],
});