2019-10-24 21:17:15 +08:00
|
|
|
/*
|
|
|
|
XiaoXiaoYingShi unlock Vip
|
|
|
|
QX:
|
2020-02-15 20:55:30 +08:00
|
|
|
https:\/\/.*\.xiaoxiao.*\.com\/(vod\/reqplay\/|ucp/index|getGlobalData) url script-response-body https://raw.githubusercontent.com/NobyDa/Script/master/QuantumultX/File/xxys.js
|
2019-10-24 21:17:15 +08:00
|
|
|
Surge:
|
2020-02-15 20:55:30 +08:00
|
|
|
http-response https:\/\/.*\.xiaoxiao.*\.com\/(vod\/reqplay\/|ucp/index|getGlobalData) requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/NobyDa/Script/master/QuantumultX/File/xxys.js
|
2019-10-24 21:17:15 +08:00
|
|
|
|
2020-02-15 20:55:30 +08:00
|
|
|
MITM = *.xiaoxiao*.com
|
2019-10-24 21:17:15 +08:00
|
|
|
*/
|
2019-07-28 16:53:04 +08:00
|
|
|
|
|
|
|
const path1 = "/ucp/index";
|
|
|
|
const path2 = "/vod/reqplay/";
|
2019-12-16 21:57:23 +08:00
|
|
|
const ad = 'getGlobalData';
|
|
|
|
let obj = JSON.parse($response.body);
|
|
|
|
|
|
|
|
if ($request.url.indexOf(path1) != -1){
|
2019-07-28 16:53:04 +08:00
|
|
|
obj.data.uinfo["down_daily_remainders"] = "666";
|
|
|
|
obj.data.uinfo["play_daily_remainders"] = "666";
|
2019-10-24 21:17:15 +08:00
|
|
|
obj.data.uinfo["curr_group"] = "5";
|
2019-07-28 16:53:04 +08:00
|
|
|
obj.data.user["isvip"] = "1";
|
2019-10-24 21:17:15 +08:00
|
|
|
obj.data.user["goldcoin"] = "666";
|
2019-07-28 16:53:04 +08:00
|
|
|
}
|
2019-12-16 21:57:23 +08:00
|
|
|
if ($request.url.indexOf(path2) != -1){
|
2019-07-28 16:53:04 +08:00
|
|
|
obj.retcode = "0";
|
|
|
|
obj.data.lastplayindex = "1";
|
|
|
|
if(obj.data.hasOwnProperty("httpurl_preview")){
|
|
|
|
var playurl = obj.data["httpurl_preview"];
|
|
|
|
obj.data["httpurl"] = playurl;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2019-12-16 21:57:23 +08:00
|
|
|
if ($request.url.indexOf(ad) != -1) {
|
|
|
|
delete obj.data.adrows
|
|
|
|
delete obj.data.adgroups
|
|
|
|
}
|
|
|
|
$done({body: JSON.stringify(obj)});
|