-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcad.js
40 lines (31 loc) · 1.11 KB
/
cad.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
31
32
33
34
35
36
37
38
39
40
/*
项目名称:CAD快速看图
更新时间:2024.2.28 会员到期时间:2024.11.8
下载地址:https://t.cn/A60VKj9S
脚本作者:@ios151
使用声明:本人共享token 请勿随意删除“快看云盘”里面的图纸 否则删库
使用方法:账号:baby 密码:1
[rewrite_local]
https://cad.glodon.com/account/gld/loginByPassword url script-response-body https://raw.githubusercontent.com/MrTlyer/js/main/cad.js
[MITM]
hostname = cad.glodon.com
*/
var url = $request.url;
if (url.match(/^https:\/\/cad\.glodon\.com\/(account\/gld\/loginByPassword|authorize\/query)$/)) {
if (url.includes("loginByPassword")) {
var responseBody = JSON.stringify({
"code": 1,
"body": {
"hasEnt": false,
"loginIdentity": "1709447589457",
"userId": "7127939710550418240",
"cadToken": "5ae03deb-3919-48b0-b834-705875c2636e"
}
});
$done({ body: responseBody });
} else if (url.includes("authorize/query")) {
var body = $response.body;
body = body.replace(/("endDate"\s*:\s*")2024-11-08 17:02:13"/g, '$19999-09-09 13:14:21"');
$done({ body });
}
}