-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanifest.json
29 lines (29 loc) · 2.66 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
{
"manifest_version": 1,
"name": "BetterCloudSearch",
"version": "1.3",
"author": "aquamarine5",
"author_links": [
"https://github.com/aquamarine5/BetterCloudSearch"
],
"description": "直接在搜索页搜索云盘音乐而不用再去云盘进行搜索",
"betterncm_version": ">=0.2.5",
"type": "extension",
"preview": "preview.png",
"injects": {
"Main": [
{
"file": "./dist/main.js"
}
]
},
"hijacks": {
"> 2.10.0": {
"orpheus://orpheus/pub/core": {
"type": "replace",
"from": "function w(t,e,n,i){if(null==(t=t||{}).code||200==t.code||e.ignoreErrCode||n.ignoreErrCode){var r=t;if(i){if(f.Rf(e.format)){var o=[];if(f.Oo(i.urls,function(e){o.push(u.call(this,t[e],i.conf[e],n))},this),o.push(n),(r=e.format.apply(this,o))&&null!=r.code&&200!=r.code)return void l.call(this,e,n,{key:n.key,code:r.code,json:r,message:r.message||\"\"})}}else r=u.call(this,t,e,n);var s=e.onload||n.onload,a=e.finaly||n.finaly||c;f.Nf(s)?a.call(this,this.Ge(s,r),n):a.call(this,(s||c).call(this,r),n)}else l.call(this,e,n,{key:n.key,code:t.code,json:t,message:t.message||\"\"})}",
"to": "function RAW_w(t,e,n,i){if(null==(t=t||{}).code||200==t.code||e.ignoreErrCode||n.ignoreErrCode){var r=t;if(i){if(f.Rf(e.format)){var o=[];if(f.Oo(i.urls,function(e){o.push(u.call(this,t[e],i.conf[e],n))},this),o.push(n),(r=e.format.apply(this,o))&&null!=r.code&&200!=r.code)return void l.call(this,e,n,{key:n.key,code:r.code,json:r,message:r.message||\"\"})}}else r=u.call(this,t,e,n);var s=e.onload||n.onload,a=e.finaly||n.finaly||c;f.Nf(s)?a.call(this,this.Ge(s,r),n):a.call(this,(s||c).call(this,r),n)}else l.call(this,e,n,{key:n.key,code:t.code,json:t,message:t.message||\"\"})} function w(t,e,n,i){if(e.key=='track_search-list'&&e.url=='/api/cloudsearch/pc'&&window.cloudsearch)window.cloudsearch(n.data.s).then((data)=>{t.result.songs=[].concat(data.list.slice(0,window.loadmaxlimit()),t.result.songs);t.result.songCount=t.result.songs.length;if(null==(t=t||{}).code||200==t.code||e.ignoreErrCode||n.ignoreErrCode){var r=t;if(i){if(f.Rf(e.format)){var o=[];if(f.Oo(i.urls,function(e){o.push(u.call(this,t[e],i.conf[e],n))},this),o.push(n),(r=e.format.apply(this,o))&&null!=r.code&&200!=r.code)return void l.call(this,e,n,{key:n.key,code:r.code,json:r,message:r.message||\"\"})}}else r=u.call(this,t,e,n);var s=e.onload||n.onload,a=e.finaly||n.finaly||c;f.Nf(s)?a.call(this,this.Ge(s,r),n):a.call(this,(s||c).call(this,r),n)}else l.call(this,e,n,{key:n.key,code:t.code,json:t,message:t.message||\"\"})});else RAW_w.apply(this,[t,e,n,i]) }"
}
}
}
}