Skip to content

Commit 3211b70

Browse files
committed
perf: 抖音
1 parent d8915a6 commit 3211b70

File tree

2 files changed

+11
-100
lines changed

2 files changed

+11
-100
lines changed

src/appDeprecatedKeys.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ const appDeprecatedKeys: RawDeprecatedKeysSetting[] = [
460460
{
461461
id: 'com.ss.android.ugc.aweme',
462462
name: '抖音',
463-
deprecatedKeys: [0, 2, 5],
463+
deprecatedKeys: [0, 2, 4, 5, 6],
464464
},
465465
{
466466
id: 'com.taobao.taobao',

src/apps/com.ss.android.ugc.aweme.ts

+10-99
Original file line numberDiff line numberDiff line change
@@ -26,55 +26,6 @@ export default defineGkdApp({
2626
key: 1,
2727
name: '局部广告-关闭用户推荐',
2828
rules: [
29-
{
30-
key: 0,
31-
activityIds: 'com.ss.android.ugc.aweme.main.MainActivity',
32-
matches:
33-
'[text="换一个"] - FrameLayout[clickable=true] > ImageView[clickable=true]',
34-
snapshotUrls: 'https://i.gkd.li/i/12520943',
35-
},
36-
{
37-
preKeys: 0,
38-
key: 1,
39-
activityIds: 'com.ss.android.ugc.aweme.main.MainActivity',
40-
matches:
41-
'[id="com.ss.android.ugc.aweme:id/desc"][text="减少此类推荐"]',
42-
snapshotUrls: 'https://i.gkd.li/i/12520962',
43-
},
44-
{
45-
key: 2,
46-
activityIds: 'com.ss.android.ugc.aweme.main.MainActivity',
47-
matches:
48-
'[text="你可能感兴趣"] < LinearLayout + [text="隐藏"][clickable=true]',
49-
snapshotUrls: 'https://i.gkd.li/i/12675396',
50-
},
51-
{
52-
key: 3,
53-
activityIds: 'com.ss.android.ugc.aweme.main.MainActivity',
54-
matches: '[text="朋友推荐"] +(2) @FrameLayout > [desc="不感兴趣"]',
55-
snapshotUrls: 'https://i.gkd.li/i/12675129',
56-
},
57-
{
58-
key: 4,
59-
activityIds:
60-
'com.ss.android.ugc.aweme.friends.ui.RawAddFriendsActivity',
61-
matches:
62-
'[text="朋友推荐"] < LinearLayout + FrameLayout > [desc="关闭"][clickable=true]',
63-
snapshotUrls: 'https://i.gkd.li/i/12675245',
64-
},
65-
{
66-
key: 5,
67-
activityIds: [
68-
'com.ss.android.ugc.aweme.main.MainActivity',
69-
'com.miui.home.launcher.Launcher',
70-
],
71-
matches:
72-
'[text="朋友推荐"] +2 [id="com.ss.android.ugc.aweme:id/close"]',
73-
snapshotUrls: [
74-
'https://i.gkd.li/i/12525387',
75-
'https://i.gkd.li/i/12525389',
76-
],
77-
},
7829
{
7930
key: 6,
8031
fastQuery: true,
@@ -102,33 +53,6 @@ export default defineGkdApp({
10253
},
10354
],
10455
},
105-
{
106-
key: 4,
107-
name: '局部广告-首页左上角广告',
108-
rules: [
109-
{
110-
activityIds: 'com.ss.android.ugc.aweme.main.MainActivity',
111-
matches:
112-
'ViewGroup + FrameLayout[id=null] > FrameLayout[childCount=2][id!=null] > ImageView[desc="关闭"][clickable=true][id!=null]',
113-
snapshotUrls: 'https://i.gkd.li/i/12749276',
114-
},
115-
],
116-
},
117-
{
118-
key: 6,
119-
name: '评价提示-去商店评分',
120-
desc: '点击[取消]',
121-
fastQuery: true,
122-
actionMaximum: 1,
123-
resetMatch: 'app',
124-
rules: [
125-
{
126-
activityIds: '.main.MainActivity',
127-
matches: '@[text="取消"] +2 [text="五星好评"]',
128-
snapshotUrls: 'https://i.gkd.li/i/13053628',
129-
},
130-
],
131-
},
13256
{
13357
key: 7,
13458
name: '功能类-设置无声进入抖音弹窗',
@@ -169,39 +93,34 @@ export default defineGkdApp({
16993
key: 11,
17094
name: '功能类-自动勾选原图',
17195
desc: '聊天发送图片时自动勾选原图',
96+
actionMaximum: 1,
17297
rules: [
17398
{
17499
fastQuery: true,
175100
activityIds:
176-
'com.ss.android.ugc.aweme.im.sdk.media.choose.MediaChooseActivity',
177-
matches: '[text="原图"][desc="未选中/复选框 原图"]',
101+
'.ecommerce.im.choosemedia.ECommerceIMMediaChooseActivity',
102+
matches:
103+
'@ImageView[clickable=true][visibleToUser=true] + [text="原图"]',
178104
snapshotUrls: [
179-
'https://i.gkd.li/i/12846036', // 未选中
180-
'https://i.gkd.li/i/12846040', // 已选中
105+
'https://i.gkd.li/i/18637952', // 未选中
106+
'https://i.gkd.li/i/18637948', // 已选中
181107
],
182108
},
183109
],
184110
},
185111
{
186112
key: 12,
187-
name: '全屏广告-休息提醒',
113+
name: '其他-休息提醒',
188114
fastQuery: true,
189115
rules: [
190116
{
191117
key: 1,
192118
matches: '@[text="取消"] + [text*="提醒我"]',
193119
snapshotUrls: [
194120
'https://i.gkd.li/i/13241564',
195-
'https://i.gkd.li/i/13372604',
196121
'https://i.gkd.li/i/14160675',
197122
],
198123
},
199-
{
200-
key: 2,
201-
activityIds: '.main.MainActivity',
202-
matches: '[text="管理使用时间"] + Button[text="忽略提醒"]',
203-
snapshotUrls: 'https://i.gkd.li/i/13372725',
204-
},
205124
],
206125
},
207126
{
@@ -211,15 +130,6 @@ export default defineGkdApp({
211130
actionMaximum: 1,
212131
resetMatch: 'app',
213132
rules: [
214-
{
215-
key: 0,
216-
name: '搜索快捷方式',
217-
activityIds:
218-
'com.ss.android.ugc.aweme.search.activity.SearchResultActivity',
219-
action: 'back',
220-
matches: 'ViewGroup[desc="添加搜索到桌面"]',
221-
snapshotUrls: 'https://i.gkd.li/i/13338556',
222-
},
223133
{
224134
key: 1,
225135
name: '商城快捷方式',
@@ -264,7 +174,7 @@ export default defineGkdApp({
264174
fastQuery: true,
265175
activityIds: 'com.ss.android.ugc.aweme.main.MainActivity',
266176
matches:
267-
'FrameLayout > @[desc="关闭"] + ViewGroup > [text$="打个招呼"]',
177+
'@[desc="关闭"] + ViewGroup > [text$="打个招呼"][visibleToUser=true]',
268178
snapshotUrls: 'https://i.gkd.li/i/13379307',
269179
},
270180
],
@@ -372,12 +282,13 @@ export default defineGkdApp({
372282
excludeActivityIds: '.setting.ui.SettingCommonProtocolActivity',
373283
matches: [
374284
'[text*="青少年" || text*="未成年"][text*="模式"]',
375-
'[text="关闭"]',
285+
'[text="关闭" || text="不再提醒"]',
376286
],
377287
snapshotUrls: [
378288
'https://i.gkd.li/i/14321107',
379289
'https://i.gkd.li/i/14473006',
380290
'https://i.gkd.li/i/17726070',
291+
'https://i.gkd.li/i/18638030',
381292
],
382293
excludeSnapshotUrls: [
383294
'https://i.gkd.li/i/14917848',

0 commit comments

Comments
 (0)