This commit is contained in:
NobyDa 2019-10-12 22:35:10 +08:00
parent ff526034c4
commit 126b432680
1 changed files with 7 additions and 2 deletions

View File

@ -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})