feat(substore): 新增 peiqian 和 yuetong 重命名脚本并优化现有脚本注释

This commit is contained in:
Orion
2026-06-03 10:12:11 +08:00
parent 93bb6a7a6c
commit 07ef71bf4a
5 changed files with 78 additions and 9 deletions
+21
View File
@@ -0,0 +1,21 @@
/**
* YueTong 专用节点清理脚本
* 负责去掉“悦·”品牌前缀、钻石等装饰,以及压短 AI 解锁文案。
*/
// noinspection JSUnusedGlobalSymbols
function operator(proxies) {
return proxies.map(proxy => {
if (typeof proxy.name !== 'string') {
return proxy;
}
proxy.name = proxy.name
.replace(/悦[·・]\s*/g, '')
.replace(/AI解锁/g, 'AI')
.replace(/💎/gu, '')
.replace(/\s{2,}/g, ' ')
.trim();
return proxy;
});
}