From d061063578f2afdc8fd4b675bc274788e5721ef0 Mon Sep 17 00:00:00 2001 From: Sliverkiss <1393579810@qq.com> Date: Mon, 5 Aug 2024 10:10:17 +0800 Subject: [PATCH] Create wnbz.js --- AdBlock/xmApp/wnbz.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 AdBlock/xmApp/wnbz.js 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));