Profiles/Surge/Rewrite/bstar.js

9 lines
245 B
JavaScript
Raw Normal View History

2021-07-21 14:42:31 +08:00
let body = $request.body;
body = body.replace(/&sim_code=\d+/,"&sim_code=51503");
2021-08-26 21:08:03 +08:00
body = body.replace(/&locale=zh_CN/,"&locale=zh_PH");
2021-07-21 14:42:31 +08:00
body = body.replace(/&s_locale=zh-Hans_[A-Z]{2}/,"&s_locale=zh-Hans_PH");
console.log(body)
$done({body});