forked from Ariszy/Private-Script
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwnyd.js
29 lines (21 loc) · 753 Bytes
/
wnyd.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
/*
网易蜗牛读书 解锁特权
原作者: yxiaocai & JO2EY
***************************
QuantumultX:
[rewrite_local]
^https?:\/\/p\.du\.163\.com\/gain\/readtime\/info\.json url script-response-body https://raw.githubusercontent.com/NobyDa/Script/master/QuantumultX/File/wnyd.js
[mitm]
hostname = p.du.163.com
***************************
Surge4 or Loon:
[Script]
http-response ^https?:\/\/p\.du\.163\.com\/gain\/readtime\/info\.json requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/NobyDa/Script/master/QuantumultX/File/wnyd.js
[MITM]
hostname = p.du.163.com
**************************/
var body = $response.body;
var obj = JSON.parse(body);
obj.tradeEndTime = 1679685290000;
body = JSON.stringify(obj);
$done({body});