28 lines
848 B
JavaScript
28 lines
848 B
JavaScript
|
||
|
||
/*
|
||
DaQianShiJie unlock
|
||
|
||
Surge4:
|
||
http-response ^https:\/\/api\.mvmtv\.com\/index\.php.*(c=user.*a=info|a=addr.*vid=.*) requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/NobyDa/Script/master/Surge/JS/dqsj.js
|
||
|
||
QX:
|
||
^https:\/\/api\.mvmtv\.com\/index\.php.*(c=user.*a=info|a=addr.*vid=.*) url script-response-body https://raw.githubusercontent.com/NobyDa/Script/master/Surge/JS/dqsj.js
|
||
|
||
Surge & QX MITM = api.mvmtv.com
|
||
*/
|
||
|
||
let obj = JSON.parse($response.body);
|
||
let url = $request.url;
|
||
const play = 'vid=';
|
||
const vip = 'c=user';
|
||
|
||
if (url.indexOf(vip) != -1) {
|
||
obj.data["is_expire"] = 3;
|
||
} else if (url.indexOf(play) != -1) {
|
||
let playurl = obj.data.play[0].mp4
|
||
obj.data.play[0].sd = playurl;
|
||
obj.data.play[0].hd = playurl;
|
||
}
|
||
$done({body: JSON.stringify(obj)});
|