diff --git a/AdBlock/xmApp/wnbz.js b/AdBlock/xmApp/wnbz.js new file mode 100644 index 0000000..43f7151 --- /dev/null +++ b/AdBlock/xmApp/wnbz.js @@ -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));