-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.js
30 lines (23 loc) · 994 Bytes
/
mix.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
27
28
29
30
/*
by @hiepkimcdtk55
* MIX解锁订阅功能
* 配置好脚本、点击三天试用、恢复购买、取消订阅。
=======Quantumult X=======
[rewrite_local]
^https:\/\/bmall\.camera360\.com\/api\/mix\/recovery$ url script-response-body https://raw.githubusercontent.com/githubdulong/Script/master/mix.js
[MITM]
hostname = bmall.camera360.com
========Surge==========
[Script]
camera360-Mix = requires-body=1,script-path= https://raw.githubusercontent.com/githubdulong/Script/master/mix.js,type=http-response,pattern= ^https:\/\/bmall\.camera360\.com\/api\/mix\/recovery$
[MITM]
hostname = bmall.camera360.com
*/
let body= $response.body;
var obj = JSON.parse(body);
if (body.indexOf("expires") !=-1) {;
obj["data"]["orderList"][0]["expires_date"] = "2099-10-19 05:14:18 Etc/GMT";
obj["data"]["orderList"][0]["expires_date_pst"] = "2099-10-18 22:14:18 America/Los_Angeles";
obj["data"]["orderList"][0]["expires_date_ms"] = "4096019658000";
}
$done({body: JSON.stringify(obj)});