♻️ refactor(substore): 优化重命名脚本中的线路标签与冗余尾号清洗逻辑

This commit is contained in:
Orion
2026-06-03 13:32:40 +08:00
parent ce9fac0504
commit 6c1e055281
3 changed files with 15 additions and 10 deletions
+6 -6
View File
@@ -25,7 +25,7 @@ https://git.orionc.me/orion/script/raw/branch/main/substore/common.js
| 脚本 | 建议配置位置 | 作用 |
| --- | --- | --- |
| `sntp-rename.js` | SNTP 单订阅 | 注入 `[三网]``[CF]``[直连]``[cn2]` 等线路标签 |
| `sntp-rename.js` | SNTP 单订阅 | 注入 `[三网]``[CFW]``[直连]``[cn2]` 等线路标签 |
| `yuetong-rename.js` | YueTong 单订阅 | 去掉 `悦·``💎`,把 `AI解锁` 压成 `AI` |
| `peiqian-rename.js` | PeiQian 单订阅 | 压短 `电信联通推荐``移动联通推荐``高速专线``hy2`、倍率和用途描述 |
| `alphaair-rename.js` | Alpha Air 单订阅 | 去掉提供者/三网/家宽文案,普通节点保留地区,高级非倍率节点保留供应商,倍率节点保留倍率并连续编号 |
@@ -41,7 +41,7 @@ https://git.orionc.me/orion/script/raw/branch/main/substore/common.js
| --- | --- |
| `GTM 0.5x` | `[三网]` |
| `GTM` | `[三网]` |
| `CT` | `[CF]` |
| `CT` | `[CFW]` |
| `D` | `[直连]` |
| `S1` | `[广移]` |
| `S2` | `[广电]` |
@@ -54,7 +54,7 @@ https://git.orionc.me/orion/script/raw/branch/main/substore/common.js
```text
🇭🇰 HK-CT-1 0.2x - SNTP
=> 🇭🇰 HK-CT-1 0.2x [CF] - SNTP
=> 🇭🇰 HK-CT-1 0.2x [CFW] - SNTP
🇯🇵 JP-D-1-0.2x - SNTP
=> 🇯🇵 JP-D-1-0.2x [直连] - SNTP
@@ -145,7 +145,7 @@ https://git.orionc.me/orion/script/raw/branch/main/substore/common.js
- 支持国旗在中间的节点名,例如 `Pro-🇭🇰 Sharon|守夜人` -> `🇭🇰 HK Pro-Sharon|守夜人`
- 将倍率移动到节点核心末尾、订阅后缀之前,例如 `US 2X 02 - Alpha Air` -> `US 02 2X - Alpha Air`
- 清理 `[DIP China-Hongkong]``[DIP]`
- 清理 `IEPL 专线` 这类冗余描述
- 清理 Alpha Flower 这类 `IEPL 专线 3``标准 1``高级 1` 的冗余线路尾号
- 追加订阅后缀 `- _subName`
- 对最终重名节点追加两位编号。
@@ -155,8 +155,8 @@ https://git.orionc.me/orion/script/raw/branch/main/substore/common.js
🇭🇰 Hong Kong 01 [DIP China-Hongkong] - Nexitally
=> 🇭🇰 HK 01 [DIP] - Nexitally
🇭🇰 香港实验性 IEPL 专线 1 - Alpha Flower
=> 🇭🇰 HK 实验性 1 - Alpha Flower
🇯🇵 日本高级 IEPL 专线 3 - Alpha Flower
=> 🇯🇵 JP 01 高级 - Alpha Flower
Pro-🇭🇰 Sharon|守夜人 - Alpha 8K Snell
=> 🇭🇰 HK Pro-Sharon|守夜人 - Alpha 8K Snell