-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanifest.json
53 lines (53 loc) · 2.17 KB
/
manifest.json
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
{
"manifest_version": 1,
"name": "LibFrontendPlay",
"version": "1.1.1",
"author": "MicroBlock",
"description": "在前端播放音乐,而不是 C++ 后端!\n【支持 AMLL 音频可视化视效,支持 VIP 歌曲】",
"betterncm_version": ">=1.0.0",
"injects": {
"Main": [
{
"file": "index.js"
}
]
},
"ncm3-compatible":true,
"hijacks": {
">= 2.10.0 < 3.0.0": {
"orpheus://orpheus/pub/hybrid/vendors~app~checkdata~download~login~mp~next-empty~sns~tipbuy.chunk": [
{
"type": "replace",
"from": "window.channel.registerCall=function",
"to": "window.channel.registerCall=(...args)=>{registeredCalls[args[0]]=registeredCalls[args[0]] || [];registeredCalls[args[0]].push(args[1]);ncmHackChannelFunc(...args);},window.ncmHackChannelFunc=function"
}
],
"orpheus://orpheus/pub/core.": [
{
"type": "replace",
"from": "v!=o.filename",
"to": "/*LFP Patched v=>ignorePath */ (o.filename.endsWith('.ncm') ? false : v!=o.filename)",
"id": "PatchOfflineEncryptedMusic::1"
},
{
"type": "replace",
"from": "l.audioFile!=v",
"to": "/*LFP Patched v=>ignorePath */ (l.audioFile.endsWith('.ncm') ? false : v!=l.audioFile)",
"id": "PatchOfflineEncryptedMusic::2"
},
{
"type": "replace",
"from": "(l=dc.setting.wS(s.path))!=v",
"to": "/*LFP Patched v=>ignorePath */ ((l=dc.setting.wS(s.path)),l.endsWith('.ncm') ? false : v!=l)",
"id": "PatchOfflineEncryptedMusic::3"
},
{
"type": "replace",
"from": "v!=e",
"to": "/*LFP Patched v=>ignorePath */ ((e?.endsWith('.ncm')) ? false : v!=e)",
"id": "PatchOfflineEncryptedMusic::4"
}
]
}
}
}