Skip to content

Commit 7272683

Browse files
committed
perf: YouTube ReVanced_性能
1 parent 501c1be commit 7272683

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/apps/app.revanced.android.youtube.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ export default defineGkdApp({
1414
activityIds:
1515
'com.google.android.apps.youtube.app.watchwhile.MainActivity',
1616
matches:
17-
'@Button[desc="Close"][clickable=true][visibleToUser=true][width<150 && height<150] <<n [vid="custom"]',
18-
exampleUrls: 'https://e.gkd.li/3c45eae4-383d-489b-ae58-f58d70ea4478',
17+
'[!(getChild(0).getChild(0).desc="Image attachment")] + @[desc="不用了,谢谢" || desc="关闭" || desc="我暂时不要" || desc="Close" || desc="No thanks"][visibleToUser=true] -n ImageView < * < [vid="custom"]',
1918
snapshotUrls: 'https://i.gkd.li/i/20856330',
19+
exampleUrls: 'https://e.gkd.li/3c45eae4-383d-489b-ae58-f58d70ea4478',
2020
},
2121
],
2222
},
@@ -31,12 +31,9 @@ export default defineGkdApp({
3131
activityIds:
3232
'com.google.android.apps.youtube.app.watchwhile.MainActivity',
3333
matches:
34-
'@Button[desc^="翻译成"||desc^="Translate to"][clickable=true][visibleToUser=true] <<n [vid="results" || vid="section_list"]',
34+
'@Button[desc^="翻译成"||desc^="Translate to"][clickable=true][visibleToUser=true] -n [desc^="@"] <<3 ViewGroup -n * < [vid="results" || vid="section_list"]',
35+
snapshotUrls: 'https://i.gkd.li/i/25462649',
3536
exampleUrls: 'https://e.gkd.li/f43ebb75-f0d2-4447-9681-2937f72cf3f7',
36-
snapshotUrls: [
37-
'https://i.gkd.li/i/25462645', // En_translate前
38-
'https://i.gkd.li/i/25462649', // En_translate后
39-
],
4037
},
4138
],
4239
},

0 commit comments

Comments
 (0)