forked from gkd-kit/subscription
-
Notifications
You must be signed in to change notification settings - Fork 0
/
com.sina.weibo.ts
229 lines (228 loc) · 7.34 KB
/
com.sina.weibo.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
import { defineAppConfig } from '../types';
export default defineAppConfig({
id: 'com.sina.weibo',
name: '微博',
groups: [
{
key: 0,
name: '开屏广告',
quickFind: true,
matchTime: 10000,
actionMaximum: 1,
resetMatch: 'app',
rules: 'TextView[text="跳过"]',
snapshotUrls: [
'https://i.gkd.li/import/12782355',
'https://i.gkd.li/import/13194049',
],
},
{
key: 1,
name: '评论区顶部-相关推荐',
quickFind: true,
activityIds: 'com.sina.weibo.feed.DetailWeiboActivity',
rules: 'ImageView[id=`com.sina.weibo:id/iv_ad_x`]',
},
{
key: 2,
name: '关闭不感兴趣广告弹窗',
quickFind: true,
activityIds: [
'com.sina.weibo.view.bottomsheet.dialog.',
'com.sina.weibo.VisitorMainTabActivity',
],
rules: {
matches: [
'[id="com.sina.weibo:id/tv_name"][text="为何会看到此广告"]',
'[id="com.sina.weibo:id/tv_name"][text="不感兴趣"]',
],
snapshotUrls: 'https://i.gkd.li/import/12672985',
},
},
{
key: 3,
name: '兴趣领域推荐',
desc: '出现在长久未登录的账户再次登录时',
quickFind: true,
activityIds: 'com.sina.weibo.account.interest.InterestActivity',
rules:
'[id="com.sina.weibo:id/rl_account_title_bar"] > [id="com.sina.weibo:id/tv_title_bar_skip"][text="跳过"]',
snapshotUrls: 'https://i.gkd.li/import/12531405',
},
{
key: 4,
name: '精选博主推荐',
desc: '出现在长久未登录的账户再次登录时',
quickFind: true,
activityIds: 'com.sina.weibo.account.recommend.RecommendActivity',
rules: [
'[id="com.sina.weibo:id/tv_option"&&text="取消勾选"]',
'[id="com.sina.weibo:id/new_next_btn"&&text="进入微博(已选0个)"]',
],
snapshotUrls: [
'https://i.gkd.li/import/12531433',
'https://i.gkd.li/import/12531434',
],
},
{
key: 5,
name: '帖子详情底部,评论区顶部广告',
desc: '点击右上角x',
quickFind: true,
activityIds: 'com.sina.weibo.feed.DetailWeiboActivity',
rules: [
{
matches:
'[id="com.sina.weibo:id/left_img_container"] + LinearLayout >2 [id="com.sina.weibo:id/close"][clickable=true]',
snapshotUrls: 'https://i.gkd.li/import/12673043',
},
{
matches:
'[id="com.sina.weibo:id/corner_marker_view"] >2 [id="com.sina.weibo:id/right_top_tag"]',
snapshotUrls: 'https://i.gkd.li/import/12673051',
},
],
},
{
key: 6,
name: '评论区博主内容推荐',
desc: '评论区同一博主其他博文推荐',
quickFind: true,
rules: [
{
activityIds: ['com.sina.weibo.feed.DetailWeiboActivity'],
matches:
'RelativeLayout[visibleToUser=true] - RelativeLayout >n @[id="com.sina.weibo:id/ll_close"] > [id="com.sina.weibo:id/tv_tips"] + [id="com.sina.weibo:id/iv_close_icon"]',
snapshotUrls: [
'https://i.gkd.li/import/12674498',
'https://i.gkd.li/import/13035647', // 限制 RelativeLayout[visibleToUser=true],防止在这个快照中误触点赞按钮
],
},
{
activityIds: [
'com.sina.weibo.utils.WeiboDialog$CustomDialog',
'com.sina.weibo.feed.DetailWeiboActivity',
],
matches: 'TextView[text="不感兴趣"]',
snapshotUrls: [
'https://i.gkd.li/import/12674511',
'https://i.gkd.li/import/12929591',
],
},
],
},
{
key: 7,
name: '首页顶部话题分享窗口',
quickFind: true,
activityIds: ['com.sina.weibo.MainTabActivity'],
rules:
'[id="com.sina.weibo:id/tvGuide"] + [id="com.sina.weibo:id/v_close"] + [id="com.sina.weibo:id/iv_close"]',
snapshotUrls: ['https://i.gkd.li/import/12705972'],
},
{
key: 8,
name: '发现页广告弹窗',
quickFind: true,
activityIds: ['com.sina.weibo.page.ad.DiscoverAdDialog'],
rules:
'[id="com.sina.weibo:id/ad_portrait_layout"] + [id="com.sina.weibo:id/btn_close"]',
snapshotUrls: ['https://i.gkd.li/import/12705974'],
},
{
enable: false,
key: 9,
name: '请求开启通知弹窗',
desc: '自动点击暂不开启',
quickFind: true,
activityIds: ['com.sina.weibo.notifyguidev2.NotifyGuideV2Activity'],
rules:
'@[id="com.sina.weibo:id/bt_cancel"][text="暂不开启"] + [id="com.sina.weibo:id/bt_confirm"]',
snapshotUrls: ['https://i.gkd.li/import/12705979'],
},
{
enable: false,
key: 10,
name: '请求开启通知提示信息',
desc: '自动点击x按钮',
quickFind: true,
activityIds: ['com.sina.weibo.MainTabActivity'],
rules:
'[text^="打开通知"] < LinearLayout + ImageView[id="com.sina.weibo:id/right_icon"]',
snapshotUrls: ['https://i.gkd.li/import/12705986'],
},
{
enable: false,
key: 11,
name: '首页顶部签到卡片',
desc: '自动点击x按钮',
quickFind: true,
activityIds: ['com.sina.weibo.MainTabActivity'],
rules:
'[id="com.sina.weibo:id/ll_check_in_container"] < FrameLayout - FrameLayout > TextView + [id="com.sina.weibo:id/v_close"]',
snapshotUrls: ['https://i.gkd.li/import/12749876'],
},
{
key: 12,
name: '首页广告弹窗',
quickFind: true,
activityIds: ['com.sina.weibo.business'],
rules:
'@[id="com.sina.weibo:id/btn_close"] - FrameLayout > [id="com.sina.weibo:id/ad_tag"]',
snapshotUrls: ['https://i.gkd.li/import/12750090'],
},
{
key: 13,
name: '悬浮广告',
desc: '自动点击x按钮',
quickFind: true,
activityIds: 'com.sina.weibo.MainTabActivity',
rules: [
{
key: 0,
matches:
'[id="com.sina.weibo:id/floating_window"] >2 [id="com.sina.weibo:id/close"]',
snapshotUrls: 'https://i.gkd.li/import/12750118',
},
{
key: 1,
matches:
'[id="com.sina.weibo:id/floating_window"] >n [id="com.sina.weibo:id/closeView"]',
snapshotUrls: 'https://i.gkd.li/import/13206775',
},
{
key: 2,
matches:
'[id="com.sina.weibo:id/tv_tag"] + @*[clickable=true] + [id="com.sina.weibo:id/countdown_btn_close"]',
snapshotUrls: 'https://i.gkd.li/import/13206841',
},
],
},
{
key: 14,
name: '请求定位权限弹窗',
quickFind: true,
rules: [
{
key: 0,
activityIds: [
'com.sina.weibo.MainTabActivity',
'com.sina.weibo.utils.WeiboDialog$CustomDialog',
],
matches: '@[text="以后再说"] + * + [text="去开启"]',
snapshotUrls: [
'https://i.gkd.li/import/13218093',
'https://i.gkd.li/import/13003311',
],
},
{
key: 1,
activityIds: 'com.sina.weibo.MainTabActivity',
matches:
'@[id="com.sina.weibo:id/btn_close"] +2 [text="使用您的位置信息"]',
snapshotUrls: 'https://i.gkd.li/import/13255595',
},
],
},
],
});