Skip to content

Commit b1f6e16

Browse files
committed
perf: 优化
1 parent cd495d4 commit b1f6e16

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

src/apps/com.bilibili.app.in.ts

+7-16
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,11 @@ export default defineGkdApp({
4040
resetMatch: 'app',
4141
rules: [
4242
{
43-
activityIds: [
44-
'com.android.launcher.Launcher',
43+
activityIds:
4544
'com.bilibili.bplus.im.communication.HomeCommunicationActivity',
46-
],
47-
matches:
48-
'[text="订阅感兴趣的通知"] +2 * > @[text^="暂不"] + [text="去开启"]',
49-
snapshotUrls: [
50-
'https://i.gkd.li/i/13399195',
51-
'https://i.gkd.li/i/18392097',
52-
],
53-
exampleUrls: [
54-
'https://e.gkd.li/4d0bfc81-05fb-498d-8c84-0c99c2abd97a',
55-
'https://e.gkd.li/283c2be2-80d7-43ab-976c-0896e678fc49',
56-
],
45+
matches: ['[text="订阅感兴趣的通知"]', '[text="暂不开启"]'],
46+
exampleUrls: 'https://e.gkd.li/283c2be2-80d7-43ab-976c-0896e678fc49',
47+
snapshotUrls: 'https://i.gkd.li/i/18392097',
5748
},
5849
],
5950
},
@@ -62,15 +53,15 @@ export default defineGkdApp({
6253
name: '权限提示-通知权限',
6354
desc: '自动点击"暂不"',
6455
fastQuery: true,
56+
matchTime: 10000,
6557
actionMaximum: 1,
6658
resetMatch: 'app',
6759
rules: [
6860
{
6961
activityIds: 'tv.danmaku.bili.MainActivityV2',
70-
matches:
71-
'[text="打开推送通知"] +2 * > @[text^="暂不"] + [text="去开启"]',
72-
snapshotUrls: 'https://i.gkd.li/i/15907493',
62+
matches: ['[text="打开推送通知"]', '[text="暂不"]'],
7363
exampleUrls: 'https://e.gkd.li/e67d6d21-f09b-44b0-bf91-8b9fa0670e27',
64+
snapshotUrls: 'https://i.gkd.li/i/15907493',
7465
},
7566
],
7667
},

0 commit comments

Comments
 (0)