forked from adsproo/txnews
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclarity.js
More file actions
32 lines (25 loc) · 839 Bytes
/
clarity.js
File metadata and controls
32 lines (25 loc) · 839 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
30
31
32
/*
克拉壁纸解锁付费壁纸
Surge4:
http-response ^https:\/\/claritywallpaper\.com\/clarity\/api\/(userInfo|special\/queryByCatalogAll) requires-body=1,max-size=262144,script-path=resources/js/clarity.js
QX:
^https:\/\/claritywallpaper\.com\/clarity\/api\/(userInfo|special\/queryByCatalogAll) url script-response-body clarity.js
Surge & QX MITM = claritywallpaper.com
*/
var body = $response.body;
var url = $request.url;
var obj = JSON.parse(body);
const userinfo = '/userInfo';
const setfree = '/special/queryByCatalogAll';
if (url.indexOf(setfree) != -1) {
for (var i = 0; i < obj.data.length; i++) {
obj.data[i].isFree = true;
}
body = JSON.stringify(obj);
}
if (url.indexOf(userinfo) != -1) {
obj.data.level = 5;
obj.data.expireTime = 4070965662;
body = JSON.stringify(obj);
}
$done({body});