ios_rule_script/source/connershua/Quantumult/X/Script/File/Zymh.js

45 lines
1.2 KiB
JavaScript
Raw Normal View History

2021-04-09 19:34:05 +08:00
/*
知音漫客 unlock vip
QX:
^https://getuserinfo-globalapi.zymk.cn/app_api/v5/(getuserinfo|coin_account|getuserinfo_ticket|getcomicinfo)/ url script-response-body https://raw.githubusercontent.com/NobyDa/Script/master/QuantumultX/File/Zymh.js
Surge4
http-response ^https://getuserinfo-globalapi.zymk.cn/app_api/v5/(getuserinfo|coin_account|getuserinfo_ticket|getcomicinfo)/ requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/NobyDa/Script/master/QuantumultX/File/Zymh.js
Surge & QX MITM = getuserinfo-globalapi.zymk.cn
*/
let url = $request.url;
let body = JSON.parse($response.body);
let user = '/app_api/v5/getuserinfo/';
let coin = '/app_api/v5/coin_account/';
let ticket = '/app_api/v5/getuserinfo_ticket/';
let free = '/app_api/v5/getcomicinfo/';
if (url.indexOf(user) != -1) {
body.data.coins = 6666;
body.data.isvip = 1;
body.data.recommend = 6666;
body.data.Cticket = 6666;
body.data.Cgold = 6666;
}
else if (url.indexOf(coin) != -1) {
body.data.coins = 6666;
body.data.golds = 6666;
}
else if (url.indexOf(ticket) != -1) {
body.data.Cticket = 6666;
}
else if (url.indexOf(free) != -1) {
body.data.price = 0;
body.data.download_price = 0;
}
body = JSON.stringify(body);
$done({body});
//by mieqq