mirror of
https://github.com/blackmatrix7/ios_rule_script.git
synced 2024-12-27 09:39:22 +08:00
43 lines
1.2 KiB
JavaScript
43 lines
1.2 KiB
JavaScript
|
/*
|
|||
|
克拉壁纸解锁付费壁纸
|
|||
|
|
|||
|
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});
|