Create kmh.js

This commit is contained in:
NobyDa 2019-07-27 21:08:16 +08:00 committed by GitHub
parent 547ae72373
commit 94fdbc6428
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

11
QuantumultX/File/kmh.js Normal file
View File

@ -0,0 +1,11 @@
var body = $response.body;
var url = $request.url;
const path = "/app_api/v5/getuserinfo/";
let obj = JSON.parse(body);
if (url.indexOf(path) != -1) {
obj["isvip"] = "1";
body = JSON.stringify(obj);
}
$done({body});
// From HoGer