ios_rule_script/source/javascript/a009ab9305f7534ff3da2f6e0a92a500.js

43 lines
1.2 KiB
JavaScript
Raw Normal View History

2022-06-04 17:46:59 +08:00
/*
克拉壁纸解锁付费壁纸
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});