forked from sngxpro/AutoSyncScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrrtv.js
More file actions
31 lines (22 loc) · 859 Bytes
/
rrtv.js
File metadata and controls
31 lines (22 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
我的app版本4.4.1
# QuanX
[rewrite_local]
# 人人视频 旧版本api限制解除
^https:\/\/api\.rr\.tv url script-request-header https://raw.githubusercontent.com/id77/QuantumultX/master/Script/rrtv.js
# Surge
[Script]
# 人人视频 旧版本api限制解除
人人视频 旧版本api限制解除 = type=http-request,pattern=^https:\/\/api\.rr\.tv,script-path= https://raw.githubusercontent.com/id77/QuantumultX/master/Script/rrtv.js
# Loon
[Script]
http-request ^https:\/\/api\.rr\.tv script-path=https://raw.githubusercontent.com/id77/QuantumultX/master/Script/rrtv.js, tag=人人视频 旧版本api限制解除
hostname = *.rr.tv
*/
const reg = /4\.\d+\.\d/g;
const headers = JSON.parse(
JSON.stringify($request.headers).replace(reg, '4.10.1')
);
const data = { headers };
data.url = $request.url.replace(reg, '4.10.1');
$done(data);