mirror of
https://github.com/Sliverkiss/QuantumultX.git
synced 2025-12-17 15:24:59 +08:00
Create xmApp.js
This commit is contained in:
13
AdBlock/xmApp/xmApp.js
Normal file
13
AdBlock/xmApp/xmApp.js
Normal 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) })
|
||||||
Reference in New Issue
Block a user