Create xmApp.js

This commit is contained in:
Sliverkiss
2024-04-02 09:12:07 +08:00
committed by GitHub
parent 2354ad885b
commit 8af1924fec

13
AdBlock/xmApp/xmApp.js Normal file
View File

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