mirror of https://github.com/NobyDa/Script.git
Fix
This commit is contained in:
parent
ff526034c4
commit
126b432680
|
@ -1,4 +1,4 @@
|
|||
//Customize whitelist
|
||||
//Customize whitelist by onewayticket255
|
||||
let whitelist=['追番','推荐','直播','热门','影视']
|
||||
|
||||
let body = $response.body
|
||||
|
@ -8,6 +8,11 @@ body['data']['tab'].forEach((element, index) => {
|
|||
if(!(whitelist.includes(element['name']))) body['data']['tab'].splice(index,1)
|
||||
});
|
||||
|
||||
delete body['data']['top']
|
||||
body['data']['bottom'].forEach((element, index)=> {
|
||||
if(element['pos']==4){
|
||||
body['data']['bottom'].splice(index,1)
|
||||
}
|
||||
})
|
||||
|
||||
body=JSON.stringify(body)
|
||||
$done({body})
|
Loading…
Reference in New Issue