Clash/source/connershua/Quantumult/X/Script/File/vsco.js

42 lines
1.3 KiB
JavaScript
Raw Normal View History

2021-04-09 19:34:05 +08:00
/*
VSCO unlock vip
QX:
^https?:\/\/vsco\.co\/api\/subscriptions\/2.1\/user-subscriptions\/ url script-response-body https://raw.githubusercontent.com/NobyDa/Script/master/QuantumultX/File/vsco.js
Surge4
http-response ^https?:\/\/vsco\.co\/api\/subscriptions\/2.1\/user-subscriptions\/ requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/NobyDa/Script/master/QuantumultX/File/vsco.js
Surge & QX MITM = vsco.co
*/
/**
* @supported 292204721941
*/
var body = $response.body;
var url = $request.url;
const path1 = '/api/subscriptions/2.1/user-subscriptions/';
let obj = JSON.parse(body);
if (url.indexOf(path1) != -1) {
obj.user_subscription["expires_on_sec"] = 1655536094;
obj.user_subscription["expired"] = false;
obj.user_subscription["payment_type"] = 2;
obj.user_subscription["is_trial_period"] = true;
obj.user_subscription["starts_on_sec"] = 1560831070;
obj.user_subscription["is_active"] = true;
obj.user_subscription["auto_renew"] = true;
obj.user_subscription["last_verified_sec"] = 1560831070;
obj.user_subscription["subscription_code"] = "VSCOANNUAL";
obj.user_subscription["user_id"] = 54624336;
obj.user_subscription["source"] = 1;
body = JSON.stringify(obj);
}
$done({body});
// 自用 转载需注明出处
// TG频道: https://t.me/NobyDa