Script/Surge/JS/NiChi.js

28 lines
765 B
JavaScript
Raw Normal View History

2019-11-22 11:53:44 +08:00
/*
2021-07-04 16:32:52 +08:00
NiChi 解锁素材包
2019-11-22 11:53:44 +08:00
2021-07-04 16:32:52 +08:00
***************************
QuantumultX:
2019-11-22 11:53:44 +08:00
2021-07-04 16:32:52 +08:00
[rewrite_local]
^https?:\/\/m(p|ini-hk)\.bybutter\.com\/mood\/(official-templates|privileges) url script-response-body https://raw.githubusercontent.com/NobyDa/Script/master/Surge/JS/NiChi.js
2019-11-22 11:53:44 +08:00
2021-07-04 16:32:52 +08:00
[mitm]
hostname = m*.bybutter.com
2019-11-22 11:53:44 +08:00
2021-07-04 16:32:52 +08:00
***************************
Surge4 or Loon:
[Script]
http-response https?:\/\/m(p|ini-hk)\.bybutter\.com\/mood\/(official-templates|privileges) requires-body=1,max-size=524288,script-path=https://raw.githubusercontent.com/NobyDa/Script/master/Surge/JS/NiChi.js
[MITM]
hostname = m*.bybutter.com
**************************/
var body = $response.body
.replace(/preview/g, "free")
.replace(/view/g, "unlimited")
.replace(/true/g, "false");
$done({ body });