大千世界

This commit is contained in:
SVE1R 2020-05-01 22:28:28 +08:00 committed by GitHub
parent 31ac4d7b62
commit b11c4ae8ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 27 additions and 0 deletions

27
Scripts/Dqsj.js Normal file
View File

@ -0,0 +1,27 @@
/*
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)});