forked from gkd-kit/subscription
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcom.baidu.tieba.ts
279 lines (277 loc) · 9.27 KB
/
com.baidu.tieba.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
import { defineAppConfig } from '../types';
export default defineAppConfig({
id: 'com.baidu.tieba',
name: '百度贴吧',
deprecatedKeys: [4],
groups: [
{
key: 0,
name: '开屏广告',
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
rules: [
{
key: 0,
quickFind: true,
name: '【跳过+倒计时】型',
matches: 'TextView[text^="跳过"][text.length<=10]',
snapshotUrls: [
'https://i.gkd.li/import/12775906',
'https://i.gkd.li/import/12566191',
'https://i.gkd.li/import/12870916',
'https://i.gkd.li/import/13233500',
],
},
{
key: 1,
name: '【圆圈跳过】型-来自穿山甲SDK',
matches: '[id="com.byted.pangle:id/tt_splash_skip_btn"]',
snapshotUrls: 'https://i.gkd.li/import/13322227',
},
{
key: 2,
quickFind: true,
name: '【x+关闭】型',
matches:
'TextView[text="广告"] - @LinearLayout[clickable=true] > [text="关闭"]',
snapshotUrls: 'https://i.gkd.li/import/13168386',
},
],
},
{
key: 1,
name: '申请消息提醒弹窗',
actionMaximum: 1,
resetMatch: 'app',
rules: [
{
key: 0,
activityIds: 'com.baidu.tieba.pb.pb.main.PbActivity',
matches:
'@ImageView[clickable=true] -2 LinearLayout > [text^="打开通知"]',
snapshotUrls: 'https://i.gkd.li/import/13536170',
},
{
key: 1,
activityIds:
'com.baidu.tieba.immessagecenter.mention.reply.ReplyMeActivity',
matches: 'TextView[text="开启消息推送"] +2 TextView[text="不开启"]',
snapshotUrls: 'https://i.gkd.li/import/13675694',
},
{
key: 2,
activityIds: 'com.baidu.tbadk.browser.TBWebContainerActivity',
matches: '[text="开启通知"] - [text="暂不开启"]',
snapshotUrls: 'https://i.gkd.li/import/13804455',
},
],
},
{
enable: false,
key: 2,
name: '信息流广告',
desc: '推荐帖子列表,评论区列表:像正常内容的广告,关闭时弹窗选原因',
activityIds: [
'com.baidu.tieba.pb.pb.main.PbActivity',
'com.baidu.tieba.frs.FrsActivity',
'com.baidu.tieba.tblauncher.MainTabActivity',
'com.baidu.tieba.forum.ForumActivity',
],
rules: [
{
key: 0,
name: '点击广告【x】',
matches: [
'RelativeLayout > TextView[text$="广告"][clickable=true]',
'LinearLayout[clickable=true][childCount=1] > @FrameLayout[clickable=true][childCount=1][desc=null] > ImageView',
],
snapshotUrls: [
'https://i.gkd.li/import/12775913', // 此3条应算卡片式广告
'https://i.gkd.li/import/13043133', // 此3条应算卡片式广告
'https://i.gkd.li/import/13054256', // 此3条应算卡片式广告
'https://i.gkd.li/import/12775930',
'https://i.gkd.li/import/12840951',
'https://i.gkd.li/import/12775916',
'https://i.gkd.li/import/12775892', // 指定点击目标为具备 clickable=true 属性的 @FrameLayout,防止在这个快照误触点击收藏
'https://i.gkd.li/import/13328300', // 指定点击目标为具备 desc=null 属性的 @FrameLayout,防止在这个快照误触点击【更多】
'https://i.gkd.li/import/13402610', // 指定LinearLayout[clickable=true] 、 activityIds: 'com.baidu.tieba.forum.ForumActivity',
'https://i.gkd.li/import/13459289',
],
},
{
preKeys: 0,
name: '关闭原因-【不感兴趣】',
matches:
'@View[text=null] - TextView[text="选择不喜欢理由"][index=0]',
snapshotUrls: 'https://i.gkd.li/import/12775914',
},
],
},
{
key: 3,
name: '首页-推荐-列表顶部卡片式广告',
activityIds: [
'com.baidu.tieba.tblauncher.MainTabActivity',
'com.baidu.tieba.frs.FrsActivity',
],
matchTime: 10000,
actionMaximum: 1,
rules: [
{
key: 1,
matches:
'RelativeLayout[childCount=2] > @RelativeLayout[childCount=1][clickable=true] > ImageView',
snapshotUrls: 'https://i.gkd.li/import/13060892',
},
],
},
{
key: 7,
name: '升级弹窗',
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
activityIds: 'com.baidu.tieba.UpdateDialog',
rules: '[text="稍后再说"]',
snapshotUrls: 'https://i.gkd.li/import/12496934',
},
{
enable: false,
key: 8,
name: '帖子底部内容推荐卡片',
desc: '关闭时弹窗选原因',
activityIds: 'com.baidu.tieba.pb.pb.main.PbActivity',
rules: [
{
key: 0,
matches:
'LinearLayout > RelativeLayout[id!=null][clickable=false] > ImageView[id=null][clickable=true]',
snapshotUrls: 'https://i.gkd.li/import/12775882',
},
{
preKeys: 0,
name: '关闭原因-不感兴趣',
matches:
'@View[text=null] - TextView[text="选择不喜欢理由"][index=0]',
snapshotUrls: 'https://i.gkd.li/import/12775914',
},
],
},
{
key: 9,
name: '广告弹窗',
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'activity',
rules: [
{
key: 0,
name: '点击右上角x关闭',
activityIds: 'com.baidu.tbadk.browser.TBWebContainerActivity',
matches:
'View[childCount=3] > @View[clickable=true][childCount=1] > Image',
snapshotUrls: [
'https://i.gkd.li/import/13060891', // activityIds: com.baidu.tbadk.browser.TBWebContainerActivity
'https://i.gkd.li/import/13222361', // childCount=1否则误触这里
],
},
{
key: 1,
name: '点击正下方x关闭',
activityIds: [
'com.baidu.tieba.frs.FrsActivity',
'com.baidu.tieba.tblauncher.MainTabActivity',
'com.baidu.tieba.LogoActivity',
],
matches:
'@TextView[clickable=true && text=null] - FrameLayout TextView[text="广告"]',
snapshotUrls: [
'https://i.gkd.li/import/13168383', // activityIds: com.baidu.tieba.tblauncher.MainTabActivity
'https://i.gkd.li/import/13322120', // activityIds: com.miui.home.launcher.Launcher
'https://i.gkd.li/import/13328246', // activityIds: com.baidu.tieba.LogoActivity
],
},
],
},
{
key: 10,
name: '悬浮小广告',
matchDelay: 500,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'activity',
rules: [
{
key: 0,
name: '首页右侧悬浮广告',
activityIds: 'com.baidu.tieba.tblauncher.MainTabActivity',
matches:
'@ImageView[clickable=true] - TextView[text="广告"] < RelativeLayout + ImageView',
snapshotUrls: [
'https://i.gkd.li/import/13115167',
'https://i.gkd.li/import/13327933', // 原规则在此误触
],
},
{
key: 1,
name: '评论区左侧悬浮广告',
quickFind: true,
activityIds: 'com.baidu.tieba.pb.pb.main.PbActivity',
matches: 'LinearLayout[childCount=2] > @ImageView + [text="广告"]',
snapshotUrls: 'https://i.gkd.li/import/13296280',
},
{
key: 2,
activityIds: [
'com.baidu.tieba.pb.pb.main.PbActivity',
'com.baidu.tieba.tblauncher.MainTabActivity',
],
matches:
'RelativeLayout[childCount=2] > RelativeLayout[childCount=1] > ImageView[childCount=0][clickable=true]',
snapshotUrls: [
'https://i.gkd.li/import/13625336',
'https://i.gkd.li/import/13627881',
],
},
],
},
{
enable: false,
key: 11,
name: '吧内-悬浮卡通-进吧逛逛',
actionMaximum: 1,
resetMatch: 'activity',
rules:
'TextView[text!=null] < LinearLayout + LinearLayout > View + ImageView[clickable=true]',
snapshotUrls: [
'https://i.gkd.li/import/13322337',
'https://i.gkd.li/import/13328738',
],
},
{
enable: false,
key: 12,
name: '功能类-贴吧内签到并关闭弹窗',
resetMatch: 'activity',
rules: [
{
key: 0,
name: '贴吧页签到',
activityIds: ['com.baidu.tieba.forum.ForumActivity'],
matches:
'WebView[text="frs"] > View > View > View > View > TextView[text="签到"][clickable=true]',
snapshotUrls: ['https://i.gkd.li/import/13776801'],
},
{
key: 1,
name: '签到成功-弹窗',
activityIds: ['com.baidu.tbadk.browser.TBWebContainerActivity'],
matches:
'WebView[text="签到弹窗"] > View > View > TextView[text=""][clickable=true]',
snapshotUrls: ['https://i.gkd.li/import/13776424'],
},
],
},
],
});