Rules-For-Quantumult-X/Scripts/Other/Dqsj.js

28 lines
848 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
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)});