Create wnbz.js

This commit is contained in:
Sliverkiss
2024-08-05 10:10:17 +08:00
committed by GitHub
parent 6d7e64bfff
commit d061063578

11
AdBlock/xmApp/wnbz.js Normal file
View File

@@ -0,0 +1,11 @@
let body = JSON.parse($response.body);
body.data.data = body.data.data.filter(e => e.key !== 'index_n');
let indexItem = body.data.data.find(e => e.key === 'index');
if (indexItem) {
let moduleList = indexItem.value.index.moduleList;
indexItem.value.index.moduleList = [moduleList[0], moduleList[moduleList.length - 1]];
}
$done(JSON.stringify(body));