-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathcpdq.js
More file actions
48 lines (36 loc) · 1.15 KB
/
cpdq.js
File metadata and controls
48 lines (36 loc) · 1.15 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
菜谱大全 unlock vip
#菜谱大全解锁vip
https?:\/\/api\.jiaonizuocai\.com url script-response-body https://raw.githubusercontent.com/photonmang/quantumultX/master/cpdq.js
#Surge4.0
^https?:\/\/api\.jiaonizuocai\.com requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/photonmang/quantumultX/master/cpdq.js
MITM = api.jiaonizuocai.com
*/
var body = $response.body;
var url = $request.url;
var obj = JSON.parse(body);
const vip = '/v4/User/getUserData';
const dish = '/v4/dish/info';
const sb = '/v4/User/getDeviceInfo';
const bd = '/v4/User/bindVipCus';
if (url.indexOf(vip) != -1) {
obj["data"]["data"]["vip"]["is_open_vip"] = "1";
obj["data"]["data"]["vip"]["is_vip"] = "2";
body = JSON.stringify(obj);
}
if (url.indexOf(dish) != -1) {
power = Object.keys(obj["data"]["power"]);
if (power.length != 0) {
obj["data"]["power"]["detail"]["video"]["common"]["isShow"] = "0";
}
body = JSON.stringify(obj);
}
if (url.indexOf(sb) != -1) {
obj["data"]["is_vip"] = "2";
body = JSON.stringify(obj);
}
if (url.indexOf(bd) != -1) {
obj["data"]["state"] = "2";
body = JSON.stringify(obj);
}
$done({body});