forked from adsproo/txnews
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathydybj.js
More file actions
29 lines (23 loc) · 733 Bytes
/
ydybj.js
File metadata and controls
29 lines (23 loc) · 733 Bytes
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
/*
有道云笔记VIP功能
By Alex0510
Surge 4:
http-response https://note.youdao.com/yws/(mapi/payment|api/self) requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/Alex0510/surge/master/Script/ydybj.js
QuanX:
https://note.youdao.com/yws/(mapi/payment|api/self) url script-response-body ydybj.js
hostname: note.youdao.com
*/
const path1 = "/api/self";
const path2 = "/mapi/payment";
let obj = JSON.parse($response.body);
if ($request.url.indexOf(path1) != -1){
obj.vip = true,
obj.properties.FEED_BACK_ID = 1,
obj.properties.isvip = true
}
if ($request.url.indexOf(path2) != -1){
obj.service = 1,
obj.payYear = true,
obj.end = 1867248816000
}
$done({body: JSON.stringify(obj)});