Skip to content

Commit a866a61

Browse files
committed
feat: 移除脚本启用验证
1 parent 74277db commit a866a61

3 files changed

Lines changed: 0 additions & 18 deletions

File tree

Script/mihomoScript.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@
22

33
// 脚本链接:https://raw.githubusercontent.com/AIsouler/MyClash/refs/heads/main/Script/mihomoScript.js
44

5-
/**
6-
* 整个脚本的总开关
7-
* true = 启用
8-
* false = 禁用
9-
*/
10-
const enable = true;
11-
125
/**
136
* 分流规则配置,会自动生成对应的策略组
147
* true = 启用
@@ -597,8 +590,6 @@ function createRegionGroup(name, icon, proxies) {
597590
// --- 主入口 ---
598591

599592
function main(config) {
600-
if (!enable) return config;
601-
602593
// 排除匹配到的节点
603594
if (excludeFilterEnable && Array.isArray(config.proxies)) {
604595
config.proxies = config.proxies.filter(

src/config/enable.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,6 @@
22

33
// 脚本链接:https://raw.githubusercontent.com/AIsouler/MyClash/refs/heads/main/Script/mihomoScript.js
44

5-
/**
6-
* 整个脚本的总开关
7-
* true = 启用
8-
* false = 禁用
9-
*/
10-
const enable = true;
11-
125
/**
136
* 分流规则配置,会自动生成对应的策略组
147
* true = 启用

src/config/main.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ function createRegionGroup(name, icon, proxies) {
1919
// --- 主入口 ---
2020

2121
function main(config) {
22-
if (!enable) return config;
23-
2422
// 排除匹配到的节点
2523
if (excludeFilterEnable && Array.isArray(config.proxies)) {
2624
config.proxies = config.proxies.filter(

0 commit comments

Comments
 (0)