Script/Surge/JS/VUE.js

26 lines
786 B
JavaScript
Raw Normal View History

2019-11-22 11:12:44 +08:00
/*
2021-07-04 16:32:52 +08:00
VUE Vlog 解锁高级功能 (需登录)
2019-11-22 11:12:44 +08:00
2021-07-04 16:32:52 +08:00
***************************
QuantumultX:
2019-11-22 11:12:44 +08:00
2021-07-04 16:32:52 +08:00
[rewrite_local]
2019-11-22 15:02:11 +08:00
^https:\/\/api\.vuevideo\.net\/api\/v1\/(users\/.+\/profile|subtitle\/prepare) url script-response-body https://raw.githubusercontent.com/NobyDa/Script/master/Surge/JS/VUE.js
2019-11-22 11:12:44 +08:00
2021-07-04 16:32:52 +08:00
[mitm]
hostname = api.vuevideo.net
***************************
Surge4 or Loon:
[Script]
http-response https:\/\/api\.vuevideo\.net\/api\/v1\/(users\/.+\/profile|subtitle\/prepare) requires-body=1,max-size=0,script-path=https://raw.githubusercontent.com/NobyDa/Script/master/Surge/JS/VUE.js
[MITM]
hostname = api.vuevideo.net
2019-11-22 11:12:44 +08:00
2021-07-04 16:32:52 +08:00
**************************/
var body = $response.body
.replace(/\"isPremium\":false/, "\"isPremium\":true")
.replace(/\"valid\":false/, "\"valid\":true");
$done({ body });