From 8af1924fecaec1db5a443ce67eb97e28ce1b615e Mon Sep 17 00:00:00 2001 From: Sliverkiss <1393579810@qq.com> Date: Tue, 2 Apr 2024 09:12:07 +0800 Subject: [PATCH] Create xmApp.js --- AdBlock/xmApp/xmApp.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 AdBlock/xmApp/xmApp.js diff --git a/AdBlock/xmApp/xmApp.js b/AdBlock/xmApp/xmApp.js new file mode 100644 index 0000000..90cc5c9 --- /dev/null +++ b/AdBlock/xmApp/xmApp.js @@ -0,0 +1,13 @@ +let url = $request.url; +let Body = JSON.parse($response.body); +if (url.match(/icon/)) { + Body.data = { + ...Body.data, + big_promotion_center: {}, + active_center: {} + } +} else if(url.match(/index/)){ + let filtData=Body.data.filter(e=>e.hasMore); + Body.data = filtData; +} +$done({ body: JSON.stringify(Body) })