This repository has been archived by the owner on Apr 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 387
/
Copy pathcom.tencent.mm.ts
215 lines (214 loc) · 8.59 KB
/
com.tencent.mm.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
import { defineAppConfig } from '../types';
export default defineAppConfig({
id: 'com.tencent.mm',
name: '微信',
groups: [
{
key: 0,
name: '朋友圈广告',
desc: '点击广告卡片右上角关闭按钮出现菜单,确认关闭',
activityIds: 'com.tencent.mm.plugin.sns.ui.SnsTimeLineUI',
exampleUrls: [
'https://github.com/gkd-kit/subscription/assets/38517192/c9ae4bba-a748-4755-b5e4-c7ad3d489a79',
],
rules: [
{
name: '点击广告卡片右上角',
matches: 'ImageView - TextView[text="广告"][id!=null][index=0]',
snapshotUrls: ['https://gkd-kit.gitee.io/import/12642588'],
},
// 以下是[确认关闭按钮]出现的情况
{
matches: '[text="关闭该广告的原因"] +(2) [text="直接关闭"]',
snapshotUrls: ['https://gkd-kit.gitee.io/import/12663984'],
},
{
matches:
'[text^="你觉得这条广告怎么样"] + FrameLayout >2 @LinearLayout[clickable=true] > [text="关闭该广告"]',
snapshotUrls: ['https://gkd-kit.gitee.io/import/12642584'],
},
{
matches: 'TextView[text*="广告"] + TextView[text="关闭该广告"]',
// 需要快照
},
],
},
{
key: 1,
name: '电脑微信快捷自动登录',
activityIds: '.plugin.webwx.ui.ExtDeviceWXLoginUI',
rules: 'TextView[text="取消登录"] - Button[text="登录"]',
},
{
key: 2,
name: '浏览器扫码微信登录自动授权',
activityIds: ['com.tencent.mm.plugin.webview.ui.tools.SDKOAuthUI'],
rules: 'Button[text="拒绝"] - Button[text="允许"]',
},
{
enable: false,
key: 3,
name: '第三方APP申请使用授权弹窗',
desc: '自动点击允许,但由于此界面可以额外新建昵称头像,默认不启用',
activityIds: ['com.tencent.mm.plugin.base.stub.UIEntryStub'],
rules: 'Button[text="拒绝"] - Button[text="允许"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12663602',
},
{
key: 4,
name: '微信读书网页版扫码登录自动授权',
activityIds: ['com.tencent.mm.plugin.webview.ui.tools.MMWebViewUI'],
rules: [
{
matches: 'Button[text="登 录"]',
snapshotUrls: 'https://gkd-kit.songe.li/import/12506197',
},
{
matches: [
'[text="登录成功"]',
'[id="com.tencent.mm:id/g1"][desc="返回"]',
],
snapshotUrls: 'https://gkd-kit.songe.li/import/12506201',
},
],
},
{
enable: false,
key: 5,
name: '微信红包自动领取',
desc: '自动领取私聊红包,群聊红包',
exampleUrls:
'https://github.com/gkd-kit/subscription/assets/38517192/32cfda78-b2e1-456c-8d85-bfb2bc4683aa',
rules: [
{
name: '从红包结算界面返回',
preKeys: [1, 2],
activityIds:
'com.tencent.mm.plugin.luckymoney.ui.LuckyMoneyBeforeDetailUI',
matches: 'ImageView[desc="返回"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12567696',
},
{
key: 1,
name: '点击红包-开',
activityIds:
'com.tencent.mm.plugin.luckymoney.ui.LuckyMoneyNotHookReceiveUI',
// Button[desc="开"] 会在出现金币动画时会消失
matches: 'ImageButton[desc="开"] + Button[desc="开"]',
snapshotUrls: [
'https://gkd-kit.gitee.io/import/12567697',
'https://gkd-kit.gitee.io/import/12567698', // 额外增加,金币动画的快照,规则不在这个快照上运行
],
},
{
key: 2,
name: '点击别人发的红包',
activityIds: 'com.tencent.mm.ui.LauncherUI',
// 第一个 LinearLayout[childCount=1] 区分是自己发的红包还是别人发的
// 第二个 LinearLayout[childCount=1] 区分这个红包是否被领取过
matches:
'LinearLayout[childCount=1] >5 LinearLayout[childCount=1] - ImageView < LinearLayout + View + RelativeLayout > TextView[text="微信红包"][id!=null]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12567637',
},
],
},
{
key: 6,
name: '订阅号文章广告',
desc: '自动点击关闭按钮,必须同时启用【订阅号文章广告反馈】规则',
activityIds:
'com.tencent.mm.plugin.brandservice.ui.timeline.preload.ui.TmplWebViewMMUI',
rules: [
{
key: 1,
name: '广告类型1',
matches:
'View[id="ad_container"] > View[childCount=1] >n @View > [id=null][text^="广告"][visibleToUser=true]',
snapshotUrls: [
'https://gkd-kit.gitee.io/import/12642232',
'https://gkd-kit.gitee.io/import/12646837', // 事件完成后,反馈按钮仍然存在,使用 View[childCount=1] 进行限定,防止频繁触发规则
'https://gkd-kit.gitee.io/import/12678937', // 文章未浏览至页面底部,广告反馈按钮不可见,使用 [visibleToUser=true] 进行限定,防止打开文章就频繁触发规则
'https://gkd-kit.gitee.io/import/12714427', // 优化规则,使用 View[id="ad_container"] 作为特征节点
],
},
{
key: 2,
name: '广告类型2',
matches:
'View[childCount=1] > @[id="feedbackTagContainer"][visibleToUser=true] > [id="feedbackTag"]',
snapshotUrls: [
'https://gkd-kit.gitee.io/import/12700183',
'https://gkd-kit.gitee.io/import/12701503', // 事件完成后,采用[childCount=1]进行限定,防止频繁触发规则
'https://gkd-kit.gitee.io/import/12714424',
],
},
],
},
{
enable: false,
key: 7,
name: '自动选中发送原图',
desc: '图片和视频选择器-自动选中底部中间的发送原图',
activityIds: 'com.tencent.mm.plugin.gallery.ui.AlbumPreviewUI',
rules: [
{
key: 1,
matches: '[text="原图"] - ImageButton[desc="未选中,原图,复选框"]',
snapshotUrls: [
'https://gkd-kit.gitee.io/import/12686641', // 未选中
'https://gkd-kit.gitee.io/import/12686640', // 已选中
],
},
],
},
{
key: 8,
name: '订阅号文章广告反馈',
desc: '自动点击反馈理由,配合【订阅号文章广告】规则使用',
activityIds:
'com.tencent.mm.plugin.brandservice.ui.timeline.preload.ui.TmplWebViewMMUI',
rules: [
{
key: 1,
// preKeys: [1], 取消 preKeys 提高点击成功率
name: '点击不感兴趣',
matches:
'View[clickable=true] > [id="feedbackTagContainer"][visibleToUser=true] + [id^="menu"] > [id="dislike"][text="不感兴趣"][visibleToUser=true]',
snapshotUrls: [
'https://gkd-kit.gitee.io/import/12642234',
'https://gkd-kit.gitee.io/import/12722301',
'https://gkd-kit.gitee.io/import/12722331', // 使用 [id="feedbackTagContainer"][visibleToUser=true] 进行限定,防止反馈界面未出现就触发规则
'https://gkd-kit.gitee.io/import/12745280', // 使用 View[clickable=true] 进行限定,防止点击之后继续触发规则
],
action: 'clickCenter', // 使用 clickCenter 事件点击,期望在快照 https://gkd-kit.gitee.io/import/12745280 中成功点击 [与我无关]
},
{
key: 2,
// preKeys: [2], 取消 preKeys 提高点击成功率
name: '点击与我无关',
matches:
'View[clickable=true] > [id^="menu"] > [id="isdismatch"][text="与我无关"]',
snapshotUrls: [
'https://gkd-kit.gitee.io/import/12642238',
'https://gkd-kit.gitee.io/import/12745169', // 使用 View[clickable=true] 进行限定,防止点击之后继续触发规则
],
},
{
key: 3,
name: '点击关闭此广告',
matches: 'TextView[id="closeBtn"][text="关闭此广告"]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12700191',
},
],
},
{
enable: false,
key: 9,
name: '自动查看原图',
desc: '自动点击底部左侧[查看原图(*M)]按钮',
activityIds: 'com.tencent.mm.ui.chatting.gallery.ImageGalleryUI',
rules: 'Button[text^="查看原图"][clickable=true]',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12706944',
},
],
});