-
Notifications
You must be signed in to change notification settings - Fork 79
/
dxmx.js
25 lines (22 loc) · 834 Bytes
/
dxmx.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
/*
大象冥想 解锁VIP&付费音乐
^https?:\/\/nmeditation\.snailsleep\.net\/meditation-(audio|user|order|audio)\/(api|user)\/(audio\/master\/detail|get\/info|order/user\/vip\/info|ad\/get) url script-response-body https://raw.githubusercontent.com/photonmang/quantumultX/master/dxmx.js
MITM = nmeditation.snailsleep.net
*/
re('"free":false@"vip":\\w+@"expires":\\d+@"isVip":\\w+','"free":true@"vip":ture@"expires":9999999999000@"isVip":true')
function re() {
var body = $response.body;
if (arguments[0].includes("@")) {
var regs = arguments[0].split("@");
var strs = arguments[1].split("@");
for (i = 0;i < regs.length;i++) {
var reg = new RegExp(regs[i],"g");
body = body.replace(reg, strs[i]);
}
}
else {
var reg = new RegExp(arguments[0],"g");
body = body.replace(reg, arguments[1]);
}
$done(body);
}