一个简单的开头,简述这篇文章讨论的问题、目标、人物、背景是什么?并简述你给出的答案。
可以说说你的故事:阻碍、努力、结果成果,意外与转折。
📝 主旨内容
/**
* 个人备份使用,该脚本适用与Mihomo Party和 Clash Verge Rev
* Clash Verge Rev 全局扩展脚本(懒人配置)/ Mihomo Party 覆写脚本
* URL: https://github.com/wanswu/my-backup
*/
// 多订阅合并,这里添加额外的地址
const proxyProviders = {
"静帆": {
"type": "http",
"url": "https://client-sub.jingfan.life/s/b6ccf8493e99bb19944f6d058f9cd852",
"interval": 86400,
"override": {
"additional-prefix": "静帆 |"
}
},
"Pin-Che": {
"type": "http",
"url": "https://pcdy.36500365.xyz/pcdy/c207a03339541cc4589e8e928e2cc241",
"interval": 86400,
"override": {
"additional-prefix": "Pin-Che |"
}
},
"宝可梦": {
"type": "http",
"url": "https://52pokemon.xz61.cn/api/v1/client/subscribe?token=76a9b7a0872f9baba832ed42106610d9",
"interval": 86400,
"override": {
"additional-prefix": "宝可梦|"
}
},
"threebrother": {
"type": "http",
"url": "https://url.v1.mk/sub?target=clash&url=https%3A%2F%2F211.threebrother.top%2Fsub%2Fb46e2363-c46b-4b98-b3d6-898de56d039c.html&insert=false&config=https%3A%2F%2Fraw.githubusercontent.com%2FACL4SSR%2FACL4SSR%2Fmaster%2FClash%2Fconfig%2FACL4SSR_Online_Full_NoAuto.ini&emoji=true&list=false&xudp=false&udp=false&tfo=false&expand=true&scv=false&fdn=false&new_name=true",
"interval": 86400,
"override": {
"additional-prefix": "threebrother |"
}
},
"naiyou999 快 多": {
"type": "http",
"url": "https://vip.naiyou999.top/s/fsu6tZie",
"interval": 86400,
"override": {
"additional-prefix": "naiyou999 快 多 |"
}
},
"wwwowo 速度快解锁流媒体": {
"type": "http",
"url": "https://api.wcc.best/sub?target=clash&url=https%3A%2F%2Fsub1.wwwowo.com%2Fserver%2Fsubscribe%2FcGJrZGYyX3NoYTI1NiQxMDAwMDAkOUpvSDFJcGhJYm85JGVYamdxTVdhLzdaa2ZQNi9JSm5nL2JsNW1EcHNlNjY4MGRzTzlOdmJyOFU9%2F&insert=false&config=https%3A%2F%2Fraw.githubusercontent.com%2FACL4SSR%2FACL4SSR%2Fmaster%2FClash%2Fconfig%2FACL4SSR_Online.ini&emoji=true&list=false&tfo=false&scv=true&fdn=false&expand=true&sort=false&new_name=true",
"interval": 86400,
"override": {
"additional-prefix": "wwwowo 速度快解锁流媒体 |"
}
},
"速度也快 节点不多": {
"type": "http",
"url": "https://api.wcc.best/sub?target=clash&url=https%3A%2F%2Fvip.dingyue2025.top%2Fs%2FKmRs7NqG&insert=false&config=https%3A%2F%2Fraw.githubusercontent.com%2FACL4SSR%2FACL4SSR%2Fmaster%2FClash%2Fconfig%2FACL4SSR_Online.ini&emoji=true&list=false&tfo=false&scv=true&fdn=false&expand=true&sort=false&new_name=true",
"interval": 86400,
"override": {
"additional-prefix": "速度也快 节点不多 |"
}
},
"super.809089.xyz": {
"type": "http",
"url": "https://api.wcc.best/sub?target=clash&url=https%3A%2F%2Fsuper.809089.xyz%2F&insert=false&config=https%3A%2F%2Fraw.githubusercontent.com%2FACL4SSR%2FACL4SSR%2Fmaster%2FClash%2Fconfig%2FACL4SSR_Online.ini&emoji=true&list=false&tfo=false&scv=true&fdn=false&expand=true&sort=false&new_name=true",
"interval": 86400,
"override": {
"additional-prefix": "super.809089.xyz |"
}
},
"NodeCat": {
"type": "http",
"url": "https://sub.nodecat.io/sub/bG1tSQU7V6keJA8m/clash",
"interval": 86400,
"override": {
"additional-prefix": "NodeCat |"
}
},
"99pb": {
"type": "http",
"url": "https://api.wcc.best/sub?target=clash&url=https%3A%2F%2Fdyaj01lcn0715.ringer233.eu.org%2Fdreamblue&insert=false&config=https%3A%2F%2Fraw.githubusercontent.com%2FACL4SSR%2FACL4SSR%2Fmaster%2FClash%2Fconfig%2FACL4SSR_Online.ini&emoji=true&list=false&tfo=false&scv=true&fdn=false&expand=true&sort=false&new_name=true",
"interval": 86400,
"override": {
"additional-prefix": "99pb |"
}
},
"速度快 爬的自建": {
"type": "http",
"url": "https://api.wcc.best/sub?target=clash&url=https%3A%2F%2Fsub1.dafei.eu.org%2F3MjgCnaN3w7ghdBFZKvr%2Fdownload%2Fcollection%2F%25E8%2587%25AA%25E5%25BB%25BA&insert=false&config=https%3A%2F%2Fraw.githubusercontent.com%2FACL4SSR%2FACL4SSR%2Fmaster%2FClash%2Fconfig%2FACL4SSR_Online.ini&emoji=true&list=false&tfo=false&scv=true&fdn=false&expand=true&sort=false&new_name=true",
"interval": 86400,
"override": {
"additional-prefix": "速度快 爬的自建 |"
}
},
}
// 程序入口
function main(config) {
const proxyCount = config?.proxies?.length ?? 0;
const originalProviders = config?.["proxy-providers"] || {};
const proxyProviderCount = typeof originalProviders === "object" ? Object.keys(originalProviders).length : 0;
if (proxyCount === 0 && proxyProviderCount === 0) {
throw new Error("配置文件中未找到任何代理");
}
// 添加自定义节点
const nodeList = [
{
"name": "自己vless",
"server": "47.79.90.70",
"port": 46511,
"type": "vless",
"uuid": "2a2b2a06-f170-4ca3-b075-6760d40507b5",
"cipher": "auto",
"flow": "xtls-rprx-vision",
"tls": true,
"udp": true,
"skip-cert-verify": false,
"servername": "www.ebay.com",
"network": "tcp",
"client-fingerprint": "chrome",
"reality-opts": {
"public-key": "BEmM-FPxSNJjHN-KdjEwOARihYs0OFhg4IPwOZOzezs",
"short-id": null
}
},
{
"name": "自己hysteria2",
"type": "hysteria2",
"server": "47.79.90.70",
"port": 7524,
"password": "b38053be-b184-4705-99e2-03633b1811ab",
"alpn": ["h3"],
"skip-cert-verify": true
}
];
// 确保 proxies 数组存在
if (!config.proxies) {
config.proxies = [];
}
// 添加自定义节点
config.proxies.push(...nodeList);
// 将节点名称添加到所有代理组中
const nodeNames = nodeList.map(node => node.name);
proxyGroupConfig.forEach(group => {
if (group["include-all"] || group.name === "AUTO") {
if (!group.proxies) {
group.proxies = [];
}
group.proxies.push(...nodeNames);
}
});
// 合并配置
config["proxy-providers"] = {
...originalProviders,
...proxyProviders
};
config["dns"] = dnsConfig;
config["proxy-groups"] = proxyGroupConfig;
config["rule-providers"] = ruleProviders;
config["rules"] = rules;
config["mixed-port"] = "7890";
config["allow-lan"] = true;
config["bind-address"] = "*";
config["ipv6"] = true;
config["unified-delay"] = true;
return config;
}
// DNS配置
const dnsConfig = {
"enable": true,
"ipv6": true,
"listen:": ":53",
"prefer-h3": false,
"respect-rules": true,
"default-nameserver": ["223.5.5.5", "119.29.29.29"],
"enhanced-mode": "fake-ip",
"fake-ip-range": "198.18.0.1/16",
"use-hosts": false,
"use-system-hosts": false,
"nameserver": ["https://1.1.1.1/dns-query", "https://dns.google/dns-query"],
"proxy-server-nameserver": ['https://doh.pub/dns-query'],
"direct-nameserver": [],
"nameserver-policy": { "+.makima.online": ["119.29.29.29"], 'geosite:cn,private': ['https://doh.pub/dns-query', 'https://dns.alidns.com/dns-query'] },
"fallback": ['https://1.1.1.1/dns-query', 'https://dns.google/dns-query'],
"fallback-filter": {
"geoip": false,
"ipcidr": ["240.0.0.0/4", "0.0.0.0/32", "61.160.148.90/32", '3131:3131:3131:3131:3131:3131:3131:3131/128'],
"domain": ["+.fmta.boo"]
},
};
// 代理组通用配置
const groupBaseOption = {
"interval": 300,
"timeout": 3000,
"url": "https://www.gstatic.com/generate_204",
"max-failed-times": 3,
"hidden": false
};
// 代理组规则
const proxyGroupConfig = [
{
...groupBaseOption,
"name": "Proxy",
"type": "select",
"proxies": ["AUTO", "HK", "TW", "JP", "KR", "US", "DE", "SG", "FR", "DIRECT", "REJECT"],
"include-all": true,
"icon": "https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Global.png"
},
{
...groupBaseOption,
"name": "AUTO",
"type": "url-test",
"include-all": true,
"tolerance": 50,
"icon": "https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Speedtest.png"
},
{
...groupBaseOption,
"name": "Apple",
"type": "select",
"proxies": ["DIRECT", "Proxy", "HK", "TW", "JP", "KR", "US", "DE", "SG", "FR", "REJECT"],
"include-all": true,
"exclude-filter": "(?i)GB|Traffic|Expire|Premium|频道|订阅|ISP|流量|到期|重置",
"icon": "https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Apple.png"
},
{
...groupBaseOption,
"name": "Telegram",
"type": "select",
"proxies": ["Proxy", "HK", "TW", "JP", "KR", "US", "DE", "SG", "FR", "DIRECT", "REJECT"],
"include-all": true,
"exclude-filter": "(?i)GB|Traffic|Expire|Premium|频道|订阅|ISP|流量|到期|重置",
"icon": "https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Telegram.png"
},
{
...groupBaseOption,
"name": "YouTube",
"type": "select",
"proxies": ["Proxy", "HK", "TW", "JP", "KR", "US", "DE", "SG", "FR", "DIRECT", "REJECT"],
"include-all": true,
"exclude-filter": "(?i)GB|Traffic|Expire|Premium|频道|订阅|ISP|流量|到期|重置",
"icon": "https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/YouTube.png"
},
{
...groupBaseOption,
"name": "BiliBili",
"type": "select",
"proxies": ["DIRECT", "Proxy", "REJECT", "HK", "TW", "JP", "KR", "US", "DE", "SG", "FR"],
"include-all": true,
"exclude-filter": "(?i)GB|Traffic|Expire|Premium|频道|订阅|ISP|流量|到期|重置",
"icon": "https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/bilibili.png"
},
{
...groupBaseOption,
"name": "OpenAI",
"type": "select",
"proxies": ["Proxy", "US", "TW", "JP", "KR", "HK", "DE", "SG", "FR", "DIRECT"],
"include-all": true,
"exclude-filter": "(?i)GB|Traffic|Expire|Premium|频道|订阅|ISP|流量|到期|重置",
"icon": "https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/ChatGPT.png"
},
{
...groupBaseOption,
"name": "Gemini",
"type": "select",
"proxies": ["Proxy", "HK", "TW", "JP", "KR", "US", "DE", "SG", "FR", "DIRECT"],
"include-all": true,
"exclude-filter": "(?i)GB|Traffic|Expire|Premium|频道|订阅|ISP|流量|到期|重置",
"icon": "https://cdn.jsdelivr.net/gh/guaishouxiaoqi/icons@master/Color/Gemini.png"
},
{
...groupBaseOption,
"name": "Claude",
"type": "select",
"proxies": ["Proxy", "US", "TW", "JP", "KR", "HK", "DE", "SG", "FR", "DIRECT"],
"include-all": true,
"exclude-filter": "(?i)GB|Traffic|Expire|Premium|频道|订阅|ISP|流量|到期|重置",
"icon": "https://cdn.jsdelivr.net/gh/ke1ewang/Qi@master/Claude.png"
},
{
...groupBaseOption,
"name": "TikTok",
"type": "select",
"proxies": ["TW", "Proxy", "HK", "JP", "KR", "US", "DE", "SG", "FR", "DIRECT"],
"include-all": true,
"exclude-filter": "(?i)GB|Traffic|Expire|Premium|频道|订阅|ISP|流量|到期|重置",
"icon": "https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/TikTok.png"
},
{
...groupBaseOption,
"name": "Spotify",
"type": "select",
"proxies": ["Proxy", "HK", "TW", "JP", "KR", "US", "DE", "SG", "FR", "DIRECT"],
"include-all": true,
"exclude-filter": "(?i)GB|Traffic|Expire|Premium|频道|订阅|ISP|流量|到期|重置",
"icon": "https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Spotify.png"
},
{
...groupBaseOption,
"name": "Netflix",
"type": "select",
"proxies": ["Proxy", "HK", "TW", "JP", "KR", "US", "DE", "SG", "FR", "DIRECT"],
"include-all": true,
"exclude-filter": "(?i)GB|Traffic|Expire|Premium|频道|订阅|ISP|流量|到期|重置",
"icon": "https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Netflix.png"
},
{
...groupBaseOption,
"name": "Disney",
"type": "select",
"proxies": ["Proxy", "HK", "TW", "JP", "KR", "US", "DE", "SG", "FR", "DIRECT"],
"include-all": true,
"exclude-filter": "(?i)GB|Traffic|Expire|Premium|频道|订阅|ISP|流量|到期|重置",
"icon": "https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Disney.png"
},
{
...groupBaseOption,
"name": "Google",
"type": "select",
"proxies": ["Proxy", "HK", "TW", "JP", "KR", "US", "DE", "SG", "FR", "DIRECT"],
"include-all": true,
"exclude-filter": "(?i)GB|Traffic|Expire|Premium|频道|订阅|ISP|流量|到期|重置",
"icon": "https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Google.png"
},
{
...groupBaseOption,
"name": "OneDrive",
"type": "select",
"proxies": ["DIRECT", "Proxy", "HK", "TW", "JP", "KR", "US", "DE", "SG", "FR"],
"include-all": true,
"exclude-filter": "(?i)GB|Traffic|Expire|Premium|频道|订阅|ISP|流量|到期|重置",
"icon": "https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/OneDrive.png"
},
{
...groupBaseOption,
"name": "Microsoft",
"type": "select",
"proxies": ["DIRECT", "Proxy", "REJECT", "HK", "TW", "JP", "KR", "US", "DE", "SG", "FR"],
"include-all": true,
"exclude-filter": "(?i)GB|Traffic|Expire|Premium|频道|订阅|ISP|流量|到期|重置",
"icon": "https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Microsoft.png"
},
{
...groupBaseOption,
"name": "Twitter",
"type": "select",
"proxies": ["Proxy", "HK", "TW", "JP", "KR", "US", "DE", "SG", "FR", "DIRECT"],
"include-all": true,
"exclude-filter": "(?i)GB|Traffic|Expire|Premium|频道|订阅|ISP|流量|到期|重置",
"icon": "https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Twitter.png"
},
{
...groupBaseOption,
"name": "Emby",
"type": "select",
"proxies": ["Proxy", "HK", "TW", "JP", "KR", "US", "DE", "SG", "FR", "DIRECT"],
"include-all": true,
"exclude-filter": "(?i)GB|Traffic|Expire|Premium|频道|订阅|ISP|流量|到期|重置",
"icon": "https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Emby.png"
},
{
...groupBaseOption,
"name": "Steam",
"type": "select",
"proxies": ["HK", "DIRECT", "TW", "JP", "KR", "US", "DE", "SG", "FR", "Proxy"],
"include-all": true,
"exclude-filter": "(?i)GB|Traffic|Expire|Premium|频道|订阅|ISP|流量|到期|重置",
"icon": "https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Steam.png"
},
{
...groupBaseOption,
"name": "HK",
"type": "url-test",
"include-all": true,
"filter": "香港|HK|🇭🇰",
"tolerance": 50,
"icon": "https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Hong_Kong.png"
},
{
...groupBaseOption,
"name": "TW",
"type": "url-test",
"include-all": true,
"filter": "台湾|TW|🇹🇼",
"tolerance": 50,
"icon": "https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Taiwan.png"
},
{
...groupBaseOption,
"name": "JP",
"type": "url-test",
"include-all": true,
"filter": "日本|JP|🇯🇵",
"tolerance": 50,
"icon": "https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Japan.png"
},
{
...groupBaseOption,
"name": "KR",
"type": "url-test",
"include-all": true,
"filter": "韩国|KR|🇰🇷",
"tolerance": 50,
"icon": "https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Korea.png"
},
{
...groupBaseOption,
"name": "US",
"type": "url-test",
"include-all": true,
"filter": "美国|US|🇺🇸",
"tolerance": 50,
"icon": "https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/United_States.png"
},
{
...groupBaseOption,
"name": "DE",
"type": "url-test",
"include-all": true,
"filter": "德国|DE|🇩🇪",
"tolerance": 50,
"icon": "https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Germany.png"
},
{
...groupBaseOption,
"name": "SG",
"type": "url-test",
"include-all": true,
"filter": "新加坡|SG|🇸🇬",
"tolerance": 50,
"icon": "https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/Singapore.png"
},
{
...groupBaseOption,
"name": "FR",
"type": "url-test",
"include-all": true,
"filter": "法国|FR|🇫🇷",
"tolerance": 50,
"icon": "https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/France.png"
},
{
...groupBaseOption,
"name": "UK",
"type": "url-test",
"include-all": true,
"filter": "英国|GB|🇬🇧",
"exclude-filter": "Traffic|Expire|Premium|频道|订阅|ISP|流量|到期|重置",
"tolerance": 50,
"icon": "https://cdn.jsdelivr.net/gh/Koolson/Qure@master/IconSet/Color/United_Kingdom.png"
}
];
// 规则集通用配置
const ruleProviderCommon = {
"type": "http",
"format": "yaml",
"interval": 86400,
"proxy": "Proxy"
};
// 规则集配置
const ruleProviders = {
"Apple": {
...ruleProviderCommon,
"behavior": "classical",
"url": "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Apple/Apple_Classical.yaml",
"path": "./ruleset/Apple.yaml"
},
"Telegram": {
...ruleProviderCommon,
"behavior": "classical",
"url": "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Telegram/Telegram.yaml",
"path": "./ruleset/Telegram.yaml"
},
"YouTube": {
...ruleProviderCommon,
"behavior": "classical",
"url": "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/YouTube/YouTube.yaml",
"path": "./ruleset/YouTube.yaml"
},
"BiliBili": {
...ruleProviderCommon,
"behavior": "classical",
"url": "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/BiliBili/BiliBili.yaml",
"path": "./ruleset/BiliBili.yaml"
},
"TikTok": {
...ruleProviderCommon,
"behavior": "classical",
"url": "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/TikTok/TikTok.yaml",
"path": "./ruleset/TikTok.yaml"
},
"Spotify": {
...ruleProviderCommon,
"behavior": "classical",
"url": "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Spotify/Spotify.yaml",
"path": "./ruleset/Spotify.yaml"
},
"Netflix": {
...ruleProviderCommon,
"behavior": "classical",
"url": "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Netflix/Netflix.yaml",
"path": "./ruleset/Netflix.yaml"
},
"Disney": {
...ruleProviderCommon,
"behavior": "classical",
"url": "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Disney/Disney.yaml",
"path": "./ruleset/Disney.yaml"
},
"Google": {
...ruleProviderCommon,
"behavior": "classical",
"url": "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Google/Google.yaml",
"path": "./ruleset/Google.yaml"
},
"OpenAI": {
...ruleProviderCommon,
"behavior": "classical",
"url": "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/OpenAI/OpenAI.yaml",
"path": "./ruleset/OpenAI.yaml"
},
"Microsoft": {
...ruleProviderCommon,
"behavior": "classical",
"url": "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Microsoft/Microsoft.yaml",
"path": "./ruleset/Microsoft.yaml"
},
"Twitter": {
...ruleProviderCommon,
"behavior": "classical",
"url": "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Twitter/Twitter.yaml",
"path": "./ruleset/Twitter.yaml"
},
"Steam": {
...ruleProviderCommon,
"behavior": "classical",
"url": "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Steam/Steam.yaml",
"path": "./ruleset/Steam.yaml"
},
"OneDrive": {
...ruleProviderCommon,
"behavior": "classical",
"url": "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/OneDrive/OneDrive.yaml",
"path": "./ruleset/OneDrive.yaml"
},
"Emby": {
...ruleProviderCommon,
"behavior": "classical",
"url": "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Emby/Emby.yaml",
"path": "./ruleset/Emby.yaml"
},
"Gemini": {
...ruleProviderCommon,
"behavior": "classical",
"url": "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Gemini/Gemini.yaml",
"path": "./ruleset/Gemini.yaml"
},
"Claude": {
...ruleProviderCommon,
"behavior": "classical",
"url": "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/Claude/Claude.yaml",
"path": "./ruleset/Claude.yaml"
},
"Github": {
...ruleProviderCommon,
"behavior": "classical",
"url": "https://cdn.jsdelivr.net/gh/blackmatrix7/ios_rule_script@master/rule/Clash/GitHub/GitHub_No_Resolve.yaml",
"path": "./ruleset/Github.yaml"
},
};
// 规则
const rules = [
// 自定义规则
"RULE-SET,Telegram,Telegram",
"RULE-SET,YouTube,YouTube",
"RULE-SET,BiliBili,BiliBili",
"RULE-SET,TikTok,TikTok",
"RULE-SET,Spotify,Spotify",
"RULE-SET,Netflix,Netflix",
"RULE-SET,Disney,Disney",
"RULE-SET,Google,Google",
"RULE-SET,OpenAI,OpenAI",
"RULE-SET,Microsoft,Microsoft",
"RULE-SET,Twitter,Twitter",
"RULE-SET,Steam,Steam",
"RULE-SET,OneDrive,OneDrive",
"RULE-SET,Emby,Emby",
"RULE-SET,Gemini,Gemini",
"RULE-SET,Claude,Claude",
"RULE-SET,Github,Proxy",
"GEOIP,LAN,DIRECT",
"GEOIP,CN,DIRECT",
"MATCH,Proxy"
];

自建节点转换的话可以问deepseek
“type”: “shadowsocksr” 在clash verge种应该是是类型
在 Clash Verge(或 Clash Meta 内核)中,ShadowsocksR (SSR) 的代理类型应该写成 ssr,而不是 shadowsocksr。
正确的 Clash Verge SSR 配置
yaml
复制
proxies:
- name: "🇹🇼 台湾1 SSR 奈飞"
type: ssr # 注意:这里必须是 "ssr",而不是 "shadowsocksr"
server: tw1.moonbase.life
port: 20411
password: "qB2Xj0"
cipher: chacha20-ietf
protocol: auth_aes128_sha1
protocol-param: "67958:6sqcB9hTAQCob6PC"
obfs: tls1.2_ticket_auth
obfs-param: "zl0amabMGlpBwCQUnQ8WobmM.news.microsoft.com"
udp:true # 如果需要UDP支持
关键区别
| 字段 | Clash (Clash Verge / Meta) | 标准 JSON |
| 代理类型 | "type": "ssr" |
"type": "shadowsocksr" |
| 协议参数 | "protocol-param" |
"protoParam" |
| 混淆参数 | "obfs-param" |
"obfsParam" |
| UDP 支持 | "udp": true |
"udp": 1 |
注意事项
- Clash Verge 使用的是
meta内核,支持 SSR,但必须用type: ssr。 protocol-param和obfs-param必须是字符串(加引号"")。- 如果 SSR 无法连接:
- 检查
cipher(加密方式)是否被支持(如chacha20-ietf、aes-256-cfb)。 - 尝试更换
obfs(混淆),比如http_simple或plain。 - 确保
server和port可用(测试ping tw1.moonbase.life和telnet tw1.moonbase.life 20411)。
- 检查
其他客户端兼容性
- Clash Premium(原版):不支持 SSR,必须用 Clash Meta。
- Shadowrocket / Surge:有自己的 SSR 配置格式,不能直接用 Clash 的 YAML。
- V2RayN / Qv2ray:通常使用标准 SSR 链接(
ssr://...)。
如果你需要转换成其他客户端的格式(如 Surge / Quantumult),可以告诉我!
给我json格式
以下是适用于 Clash Verge / Clash Meta 的标准 JSON 格式 ShadowsocksR (SSR) 配置:
json
复制
{
"proxies": [
{
"name": "🇹🇼 台湾1 SSR 奈飞",
"type": "ssr",
"server": "tw1.moonbase.life",
"port": 20411,
"password": "qB2Xj0",
"cipher": "chacha20-ietf",
"protocol": "auth_aes128_sha1",
"protocol-param": "67958:6sqcB9hTAQCob6PC",
"obfs": "tls1.2_ticket_auth",
"obfs-param": "zl0amabMGlpBwCQUnQ8WobmM.news.microsoft.com",
"udp": true
}
]
}
关键说明:
type必须是"ssr"Clash 系客户端不接受
"shadowsocksr"写法。- 参数命名风格
protoParam→"protocol-param"obfsParam→"obfs-param"(使用短横线连接,全小写)
- UDP 支持
显式声明
"udp": true确保 UDP 流量转发。 - 完整结构
配置文件需包含
proxies数组,即使只有一个节点。
其他常见问题:
- 如果连接失败:尝试关闭
udp或更换obfs为http_simple。 - 加密方式兼容性:
chacha20-ietf在多数客户端可用,旧设备可能需改用aes-256-cfb。 - Clash 原版不支持 SSR,必须使用 Clash Meta 内核。
需要转换成其他格式(如 Surge 的 SSR 链接或 Quantumult 配置)可随时告知。
同样处理一下这个:{
“host” : “vn1.vip2.moonbase.life”,
“file” : “”,
“obfsParam” : “zl0amabMGlpBwCQUnQ8WobmM.news.microsoft.com”,
“alpn” : “”,
“cert” : “”,
“created” : 1743320471.319102,
“updated” : 1743320062.933341,
“mtu” : “”,
“flag” : “VN”,
“ping” : 567,
“privateKey” : “”,
“hpkp” : “”,
“uuid” : “61a748ee-85a0-b343-9c61-bdef15e1f13e”,
“type” : “ShadowsocksR”,
“downmbps” : “”,
“user” : “”,
“ech” : “”,
“plugin” : “”,
“method” : “chacha20-ietf”,
“data” : “https://web.lazydoge.xyz/sub/v4vYDPxVPqiNSJipWuTJuzECGVW6k65J”,
“udp” : 1,
“filter” : “”,
“protoParam” : “67958:6sqcB9hTAQCob6PC”,
“reserved” : “”,
“alterId” : “”,
“upmbps” : “”,
“keepalive” : “”,
“port” : “21741”,
“obfs” : “tls1.2_ticket_auth”,
“dns” : “”,
“publicKey” : “”,
“peer” : “”,
“weight” : 1743336570,
“ip” : “”,
“title” : “🇻🇳 [旗舰版+]越南1 原生IP”,
“proto” : “auth_aes128_sha1”,
“password” : “qB2Xj0”,
“chain” : “”,
“shortId” : “”
}
以下是转换后的标准 Clash Verge / Clash Meta 兼容的 JSON 格式 ShadowsocksR (SSR) 配置:
json
复制
{
"proxies": [
{
"name": "🇻🇳 [旗舰版+]越南1 原生IP",
"type": "ssr",
"server": "vn1.vip2.moonbase.life",
"port": 21741,
"password": "qB2Xj0",
"cipher": "chacha20-ietf",
"protocol": "auth_aes128_sha1",
"protocol-param": "67958:6sqcB9hTAQCob6PC",
"obfs": "tls1.2_ticket_auth",
"obfs-param": "zl0amabMGlpBwCQUnQ8WobmM.news.microsoft.com",
"udp": true,
"uuid": "61a748ee-85a0-b343-9c61-bdef15e1f13e",
"flag": "VN",
"ping": 567
}
]
}
转换说明:
- 字段标准化:
"type": "ShadowsocksR"→"type": "ssr"(Clash 专用标识)"proto"→"protocol""protoParam"→"protocol-param""obfsParam"→"obfs-param""udp": 1→"udp": true
- 移除冗余字段:
- 删除
file/cert/mtu/privateKey等 SSR 无关字段。 - 保留核心连接参数和元数据(如
flag/ping)。
- 删除
- 关键参数:
- 混淆:
tls1.2_ticket_auth(伪装为微软域名流量) - 协议:
auth_aes128_sha1(增强安全性) - 加密:
chacha20-ietf(高性能算法)
- 混淆:
- 性能提示:
- 延迟
567ms较高,可能影响实时应用(如视频通话)。 - 如需优化,可尝试更换
obfs为http_simple或调整protocol-param。
- 延迟
其他格式需求:
如需转换为以下格式,请告知:
- Clash YAML 完整配置文件
- Surge SSR 链接(
ssr://...) - Quantumult X 配置
- V2RayN 订阅链接
https://chat.deepseek.com/a/chat/s/ff44b317-03ee-49c6-95f1-23dab9ed8cba
自用 mihomo clash脚本和yaml文件
备份地址:坚果云、github
原文归档:https://blog.7998888.xyz/technology/1d3a8b91-8e49-80f4-827a-c9344337bd05








暂无评论内容