forked from fmz200/wool_scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fenbi.js
26 lines (20 loc) · 826 Bytes
/
fenbi.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// 2023-08-19 16:00
/**
[rewrite_local]
^https:\/\/tiku\.fenbi\.com\/activity\/app\/launcher\? url script-response-body https://raw.githubusercontent.com/fmz200/wool_scripts/main/Scripts/fenbi.js
[mitm]
hostname = tiku.fenbi.com
*/
//^https:\/\/tiku\.fenbi\.com\/iphone\/(shenlun|xingce|sqgj)\/banners\/v2?.* url script-response-body https://raw.githubusercontent.com/githubacct001/QuantumultX/secret/Rewrite/Fenbi/fbgk.js
const url = $request.url;
if (!$response.body) $done({});
let obj = JSON.parse($response.body);
if (url.includes("/activity/app/launcher")) {
if (obj?.data?.length > 0) {
obj.data.forEach((i) => {
i.startTime = 2208960000; // Unix 时间戳 2040-01-01 00:00:00
i.endTime = 2209046399; // Unix 时间戳 2040-01-01 23:59:59
});
}
}
$done({ body: JSON.stringify(obj) });