mirror of
https://github.com/Giu-zhao/ios_rule_script
synced 2024-11-25 18:08:24 +08:00
24 lines
699 B
JavaScript
24 lines
699 B
JavaScript
|
/*
|
|||
|
bilibili fan drama open 1080P+
|
|||
|
|
|||
|
QX:
|
|||
|
^https?:\/\/api\.bilibili\.com\/pgc\/player\/api\/playurl url script-response-body https://raw.githubusercontent.com/NobyDa/Script/master/QuantumultX/File/bilifj.js
|
|||
|
|
|||
|
Surge4:
|
|||
|
http-response ^https?:\/\/api\.bilibili\.com\/pgc\/player\/api\/playurl requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/NobyDa/Script/master/QuantumultX/File/bilifj.js
|
|||
|
|
|||
|
Surge & QX MITM = api.bilibili.com
|
|||
|
*/
|
|||
|
|
|||
|
var body = $response.body;
|
|||
|
var url = $request.url;
|
|||
|
|
|||
|
const path1 = '/pgc/player/api/playurl';
|
|||
|
|
|||
|
if (url.indexOf(path1) != -1) {
|
|||
|
let obj = JSON.parse(body);
|
|||
|
obj["quality"] = obj["accept_quality"][0];
|
|||
|
body = JSON.stringify(obj);
|
|||
|
}
|
|||
|
|
|||
|
$done({body});
|