refactor(substore): 将通用工具函数迁移至公共库
- 从各个重命名脚本中移除重复的工具函数实现 - 将 multiplierOf、multiplierValueOf、stripSubscriptionSuffix 等函数统一到 common.js - 使用 utils.multiplierOf、utils.multiplierValueOf 替代本地实现 - 引入 utils.createSequenceCounter 替代手动计数逻辑 - 更新版本号从 20260608-1 到 20260702-1 - 移除重复的正则表达式匹配逻辑 - 标准化序列计数器实现方式 - 优化 yinyun-rename.js 中的信息节点过滤逻辑
This commit is contained in:
+6
-2
@@ -5,7 +5,7 @@
|
||||
`common.js` 是公共工具库,各处理脚本会按下面的 raw 地址自动加载:
|
||||
|
||||
```text
|
||||
https://git.orionc.me/orion/script/raw/branch/main/substore/common.js?v=20260608-1
|
||||
https://git.orionc.me/orion/script/raw/branch/main/substore/common.js?v=20260702-1
|
||||
```
|
||||
|
||||
## 推荐使用顺序
|
||||
@@ -163,7 +163,7 @@ https://git.orionc.me/orion/script/raw/branch/main/substore/common.js?v=20260608
|
||||
|
||||
## YinYun 规则
|
||||
|
||||
`yinyun-rename.js` 建议挂在 YinYun 单条订阅里使用。YinYun 的节点名主要由中文地区名、`优选`/数字编号和 `(T)`/`(R)` 线路标记组成;脚本会忽略这些原始线路细节,按地区出现顺序重新连续编号,最后再交给全局 `rename.js` 追加订阅后缀。
|
||||
`yinyun-rename.js` 建议挂在 YinYun 单条订阅里使用。YinYun 的节点名主要由中文地区名、`优选`/数字编号、`(T)`/`(R)` 线路标记和可选 `ᴮᴬᴷ` 备份标签组成;脚本会忽略这些原始线路细节,按地区出现顺序重新连续编号,过滤官网/TG 信息节点,最后再交给全局 `rename.js` 追加订阅后缀。
|
||||
|
||||
```text
|
||||
香港 优选(T)
|
||||
@@ -181,6 +181,10 @@ https://git.orionc.me/orion/script/raw/branch/main/substore/common.js?v=20260608
|
||||
魔法节点 (R)
|
||||
=> MAGIC 01
|
||||
=> MAGIC 01 - YinYun
|
||||
|
||||
泰国 (T) ᴮᴬᴷ
|
||||
=> 🇹🇭 TH 01
|
||||
=> 🇹🇭 TH 01 - YinYun
|
||||
```
|
||||
|
||||
## 全局重命名
|
||||
|
||||
Reference in New Issue
Block a user