ios_rule_script/source/javascript/a009ab9305f7534ff3da2f6e0a92a500.js
2022-06-30 00:08:48 +08:00

43 lines
1.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
克拉壁纸解锁付费壁纸
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
*/
/*
克拉壁纸解锁付费壁纸
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});