-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathCamScanner.js
126 lines (113 loc) · 4.14 KB
/
CamScanner.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/*************************************
项目名称:扫描全能王 解锁黄金会员
下载地址:https://t.cn/A6ouHe4B
脚本作者:chxm1023
使用说明:解锁部分功能,使用前先开脚本。
使用声明:⚠️仅供参考,🈲转载与售卖!
**************************************
[rewrite_local]
^https:\/\/.*\.(intsig\.net|camscanner\.com) url script-response-body https://raw.githubusercontent.com/Yu9191/Rewrite/main/CamScanner.js
[mitm]
hostname = *.camscanner.com, *.intsig.net
*************************************/
var chxm1023;
try {
chxm1023 = JSON.parse($response.body) ?? {};
} catch (e) {
// console.log("Failed to parse JSON:", e);
chxm1023 = {};
}
const vipa = '/purchase/cs/query_property';
const vipb = '/queryProperty';
const tqzx = '/getPrivilegeItem';
const vip = {
"group1_paid": 1,
"ms_first_pay": 0,
"vip_type": "svip",
"auto_renewal": true,
"in_trial": 1,
"members_page": 0,
"pc_vip": 1,
"renew_type": "year",
"renew_method": "appstore",
"ys_first_pay": 0,
"initial_tm": "4092599349",
"product_id": "com.intsig.camscanner.premiums.oneyear.autorenewable.free.test1",
"vip_level_info": {
"score": 0,
"level": 0,
"next_score": 1,
"start_score": 0,
"create_time": 0
},
"nxt_renew_tm": "4092599349",
"last_payment_method": "appstore",
"grade": 2,
"svip": 1,
"expiry": 4092599349,
"pending": 0,
"level_info": {
"level": 1,
"end_days": 30,
"days": 1
},
"inherited_flag": 0,
"group2_paid": 0
};
if ($request.url.indexOf(vipa) != -1) {
chxm1023.data["psnl_vip_property"] = vip;
chxm1023.data["fax_balance"] = "99999";
chxm1023.data["used_points"] = "99999";
chxm1023.data["points"] = "99999";
chxm1023.data["pdfword_balance"] = "100010";
chxm1023.data["bookmode_balance"] = 100010;
chxm1023.data["immt_expy_points"] = "99999";
chxm1023.data["ocr_balance"] = 99999;
chxm1023.data["no_login_ocr_balance"] = "99999";
chxm1023.data["CamScanner_RoadMap"] = 100000;
}
if ($request.url.indexOf(vipb) != -1) {
chxm1023.data.ar_property = chxm1023.data.ar_property || {};
chxm1023.data.ar_property["psnl_vip_property"] = vip;
}
if ($request.url.indexOf(tqzx) != -1) {
chxm1023.data.data = {
"document": [
{ "balance": -1, "item": "CamScanner_Pic2pdf" },
{ "balance": -1, "item": "CamScanner_PdfCompress" },
{ "balance": -1, "item": "CamScanner_PdfEncrypt" },
{ "balance": -1, "item": "CamScanner_FileMerge" },
{ "balance": -1, "item": "CamScanner_PdfExtract" },
{ "balance": -1, "item": "CamScanner_PdfWatermark" },
{ "balance": -1, "item": "CamScanner_PdfSign" },
{ "balance": 99999, "item": "CamScanner_Intellect_Erase" }
],
"transfer": [
{ "balance": -1, "item": "CamScanner_ExcelRecoginze" },
{ "balance": -1, "item": "CamScanner_RoadMap" },
{ "balance": -1, "item": "CamScanner_Pdf2ppt" },
{ "balance": 99999, "item": "CamScanner_CloudOCR" }
],
"other": [
{ "balance": 99999, "item": "CamScanner_Translation" },
{ "balance": -1, "item": "CamScanner_DirNum" },
{ "balance": -1, "item": "CamScanner_IP_REMOVEAD" },
{ "balance": -1, "item": "CamScanner_PingTu" },
{ "balance": 99999, "item": "CamScanner_Points" },
{ "balance": 99999, "item": "CamScanner_Fax_Balance" }
],
"scaner": [
{ "balance": 99999, "item": "CamScanner_ImageRestore" },
{ "balance": -1, "item": "CamScanner_Patting" },
{ "balance": 99999, "item": "CamScanner_Profile_Card_Format" },
{ "balance": -1, "item": "CamScanner_BookMode" },
{ "balance": -1, "item": "CamScanner_CertMode" },
{ "balance": -1, "item": "CamScanner_HDScan" },
{ "balance": 99999, "item": "CamScanner_CloudOCR" }
],
"pure": [
{ "balance": -1, "item": "CamScanner_IP_REMOVEAD" }
]
};
}
$done({ body: JSON.stringify(chxm1023) });