Last active
July 4, 2025 14:04
-
-
Save Murlors/171fd8fcc2a9e9312de5f26dfb4442cf to your computer and use it in GitHub Desktop.
Clash Verge
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Profile Enhancement Merge Template for Clash Verge | |
| profile: | |
| store-selected: true | |
| rule-providers: | |
| Apple: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/Ruleset/Apple.yaml" | |
| path: ./ACL4SSR/Apple.yaml | |
| interval: 86400 | |
| Bahamut: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/Ruleset/Bahamut.yaml" | |
| path: ./ACL4SSR/Bahamut.yaml | |
| interval: 86400 | |
| Bilibili: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/Ruleset/Bilibili.yaml" | |
| path: ./ACL4SSR/Bilibili.yaml | |
| interval: 86400 | |
| BilibiliHMT: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/Ruleset/BilibiliHMT.yaml" | |
| path: ./ACL4SSR/BilibiliHMT.yaml | |
| interval: 86400 | |
| Bing: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/Ruleset/Bing.yaml" | |
| path: ./ACL4SSR/Bing.yaml | |
| interval: 86400 | |
| Developer: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/Ruleset/Developer.yaml" | |
| path: ./ACL4SSR/Developer.yaml | |
| interval: 86400 | |
| EHGallery: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/Ruleset/EHGallery.yaml" | |
| path: ./ACL4SSR/EHGallery.yaml | |
| interval: 86400 | |
| Epic: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/Ruleset/Epic.yaml" | |
| path: ./ACL4SSR/Epic.yaml | |
| interval: 86400 | |
| Google: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/Ruleset/Google.yaml" | |
| path: ./ACL4SSR/Google.yaml | |
| interval: 86400 | |
| GoogleCN: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/Ruleset/GoogleCN.yaml" | |
| path: ./ACL4SSR/GoogleCN.yaml | |
| interval: 86400 | |
| GoogleFCM: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/Ruleset/GoogleFCM.yaml" | |
| path: ./ACL4SSR/GoogleFCM.yaml | |
| interval: 86400 | |
| Microsoft: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/Ruleset/Microsoft.yaml" | |
| path: ./ACL4SSR/Microsoft.yaml | |
| interval: 86400 | |
| NetEaseMusic: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/Ruleset/NetEaseMusic.yaml" | |
| path: ./ACL4SSR/NetEaseMusic.yaml | |
| interval: 86400 | |
| Netflix: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/Ruleset/Netflix.yaml" | |
| path: ./ACL4SSR/Netflix.yaml | |
| interval: 86400 | |
| NetflixIP: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/Ruleset/NetflixIP.yaml" | |
| path: ./ACL4SSR/NetflixIP.yaml | |
| interval: 86400 | |
| OneDrive: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/Ruleset/OneDrive.yaml" | |
| path: ./ACL4SSR/OneDrive.yaml | |
| interval: 86400 | |
| OpenAi: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/Ruleset/OpenAi.yaml" | |
| path: ./ACL4SSR/OpenAi.yaml | |
| interval: 86400 | |
| Porn: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/Ruleset/Porn.yaml" | |
| path: ./ACL4SSR/Porn.yaml | |
| interval: 86400 | |
| Scholar: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/Ruleset/Scholar.yaml" | |
| path: ./ACL4SSR/Scholar.yaml | |
| interval: 86400 | |
| Sony: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/Ruleset/Sony.yaml" | |
| path: ./ACL4SSR/Sony.yaml | |
| interval: 86400 | |
| Spotify: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/Ruleset/Spotify.yaml" | |
| path: ./ACL4SSR/Spotify.yaml | |
| interval: 86400 | |
| Steam: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/Ruleset/Steam.yaml" | |
| path: ./ACL4SSR/Steam.yaml | |
| interval: 86400 | |
| SteamCN: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/Ruleset/SteamCN.yaml" | |
| path: ./ACL4SSR/SteamCN.yaml | |
| interval: 86400 | |
| Telegram: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/Ruleset/Telegram.yaml" | |
| path: ./ACL4SSR/Telegram.yaml | |
| interval: 86400 | |
| Xbox: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/Ruleset/Xbox.yaml" | |
| path: ./ACL4SSR/Xbox.yaml | |
| interval: 86400 | |
| YouTube: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/Ruleset/YouTube.yaml" | |
| path: ./ACL4SSR/YouTube.yaml | |
| interval: 86400 | |
| BanAD: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/BanAD.yaml" | |
| path: ./ACL4SSR/BanAD.yaml | |
| interval: 86400 | |
| BanEasyList: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/BanEasyList.yaml" | |
| path: ./ACL4SSR/BanEasyList.yaml | |
| interval: 86400 | |
| BanEasyListChina: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/BanEasyListChina.yaml" | |
| path: ./ACL4SSR/BanEasyListChina.yaml | |
| interval: 86400 | |
| BanEasyPrivacy: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/BanEasyPrivacy.yaml" | |
| path: ./ACL4SSR/BanEasyPrivacy.yaml | |
| interval: 86400 | |
| BanProgramAD: # 包含常用应用的各种去广告规则。可能有轻微副作用,可放心使用。(如果网站功能和广告冲突,会删掉去广告规则) | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/BanProgramAD.yaml" | |
| path: ./ACL4SSR/BanProgramAD.yaml | |
| interval: 86400 | |
| ChinaCompanyIp: | |
| type: http | |
| behavior: ipcidr | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/ChinaCompanyIp.yaml" | |
| path: ./ACL4SSR/ChinaCompanyIp.yaml | |
| interval: 86400 | |
| ChinaDomain: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/ChinaDomain.yaml" | |
| path: ./ACL4SSR/ChinaDomain.yaml | |
| interval: 86400 | |
| ChinaIp: | |
| type: http | |
| behavior: ipcidr | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/ChinaIp.yaml" | |
| path: ./ACL4SSR/ChinaIp.yaml | |
| interval: 86400 | |
| ChinaIpV6: | |
| type: http | |
| behavior: ipcidr | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/ChinaIpV6.yaml" | |
| path: ./ACL4SSR/ChinaIpV6.yaml | |
| interval: 86400 | |
| ChinaMedia: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/ChinaMedia.yaml" | |
| path: ./ACL4SSR/ChinaMedia.yaml | |
| interval: 86400 | |
| Download: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/Download.yaml" | |
| path: ./ACL4SSR/Download.yaml | |
| interval: 86400 | |
| LocalAreaNetwork: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/LocalAreaNetwork.yaml" | |
| path: ./ACL4SSR/LocalAreaNetwork.yaml | |
| interval: 86400 | |
| ProxyGFWlist: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/ProxyGFWlist.yaml" | |
| path: ./ACL4SSR/ProxyGFWlist.yaml | |
| interval: 86400 | |
| ProxyMedia: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/ProxyMedia.yaml" | |
| path: ./ACL4SSR/ProxyMedia.yaml | |
| interval: 86400 | |
| UnBan: | |
| type: http | |
| behavior: classical | |
| url: "https://cdn.jsdelivr.net/gh/ACL4SSR/ACL4SSR@master/Clash/Providers/UnBan.yaml" | |
| path: ./ACL4SSR/UnBan.yaml | |
| interval: 86400 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 国内DNS服务器 | |
| const domesticNameservers = [ | |
| "https://dns.alidns.com/dns-query", // 阿里云公共DNS | |
| "https://doh.pub/dns-query", // 腾讯DNSPod | |
| "https://doh.360.cn/dns-query", // 360安全DNS | |
| ]; | |
| // 国外DNS服务器 | |
| const foreignNameservers = [ | |
| "https://1.1.1.1/dns-query", // Cloudflare(主) | |
| "https://1.0.0.1/dns-query", // Cloudflare(备) | |
| "https://208.67.222.222/dns-query", // OpenDNS(主) | |
| "https://208.67.220.220/dns-query", // OpenDNS(备) | |
| "https://194.242.2.2/dns-query", // Mullvad(主) | |
| "https://194.242.2.3/dns-query", // Mullvad(备) | |
| ]; | |
| // DNS配置 | |
| const dnsConfig = { | |
| enable: true, | |
| listen: "0.0.0.0:1053", | |
| ipv6: true, | |
| "use-system-hosts": false, | |
| "cache-algorithm": "arc", | |
| "enhanced-mode": "fake-ip", | |
| "fake-ip-range": "198.18.0.1/16", | |
| "fake-ip-filter": [ | |
| // 本地主机/设备 | |
| "+.lan", | |
| "+.local", | |
| // Windows网络出现小地球图标 | |
| "+.msftconnecttest.com", | |
| "+.msftncsi.com", | |
| // QQ快速登录检测失败 | |
| "localhost.ptlogin2.qq.com", | |
| "localhost.sec.qq.com", | |
| // 微信快速登录检测失败 | |
| "localhost.work.weixin.qq.com", | |
| ], | |
| "default-nameserver": ["223.5.5.5", "119.29.29.29", "1.1.1.1", "8.8.8.8"], | |
| nameserver: [...domesticNameservers, ...foreignNameservers], | |
| "proxy-server-nameserver": [...domesticNameservers, ...foreignNameservers], | |
| "nameserver-policy": { | |
| "geosite:private,cn,geolocation-cn": domesticNameservers, | |
| "geosite:google,youtube,telegram,gfw,geolocation-!cn": foreignNameservers, | |
| }, | |
| }; | |
| // 规则 | |
| const rules = [ | |
| // 系统程序绕过 | |
| "PROCESS-NAME,IDMan.exe,🔗 全局直连", | |
| // ChatBot | |
| "RULE-SET,OpenAi,💬 OpenAi", | |
| "RULE-SET,Bing,🔍 Bing", | |
| // Telegram | |
| "RULE-SET,Telegram,✈️ Telegram", | |
| // 广告 | |
| "RULE-SET,BanAD,🚫 广告拦截", | |
| "RULE-SET,BanEasyList,🚫 广告拦截", | |
| "RULE-SET,BanEasyListChina,🚫 广告拦截", | |
| "RULE-SET,BanEasyPrivacy,🚫 广告拦截", | |
| "RULE-SET,BanProgramAD,🚫 广告拦截", | |
| // 国内 | |
| "RULE-SET,ChinaCompanyIp,🔗 全局直连", | |
| "RULE-SET,ChinaDomain,🔗 全局直连", | |
| "RULE-SET,ChinaIp,🔗 全局直连", | |
| "RULE-SET,ChinaIpV6,🔗 全局直连", | |
| // 白名单 | |
| "RULE-SET,UnBan,🔗 全局直连", | |
| // 本地 | |
| "RULE-SET,Download,🔗 全局直连", | |
| "RULE-SET,LocalAreaNetwork,🔗 全局直连", | |
| // 媒体 | |
| "RULE-SET,ChinaMedia,📺 国内媒体", | |
| "RULE-SET,Bilibili,📺 国内媒体", | |
| "RULE-SET,NetEaseMusic,📺 国内媒体", | |
| "RULE-SET,BilibiliHMT,📹 国外媒体", | |
| "RULE-SET,ProxyMedia,📹 国外媒体", | |
| "RULE-SET,Netflix,📹 国外媒体", | |
| "RULE-SET,NetflixIP,📹 国外媒体", | |
| "RULE-SET,Sony,📹 国外媒体", | |
| "RULE-SET,Spotify,📹 国外媒体", | |
| "RULE-SET,YouTube,📹 国外媒体", | |
| // 游戏 | |
| "RULE-SET,Bahamut,🎮 游戏平台", | |
| "RULE-SET,Epic,🎮 游戏平台", | |
| "RULE-SET,Steam,🎮 游戏平台", | |
| "RULE-SET,SteamCN,🔗 全局直连", | |
| "RULE-SET,Xbox,🎮 游戏平台", | |
| // 开发 | |
| "RULE-SET,Developer,🚀 节点选择", | |
| // 18 | |
| "RULE-SET,EHGallery,🚀 节点选择", | |
| "RULE-SET,Porn,🚀 节点选择", | |
| // 学术 | |
| "RULE-SET,Scholar,🚀 节点选择", | |
| // 其他 | |
| "RULE-SET,Apple,🍎 苹果服务", | |
| "RULE-SET,Google,📢 谷歌服务", | |
| "RULE-SET,GoogleCN,🔗 全局直连", | |
| "RULE-SET,GoogleFCM,📢 谷歌服务", | |
| "RULE-SET,Microsoft,Ⓜ️ 微软服务", | |
| "RULE-SET,OneDrive,Ⓜ️ 微软服务", | |
| // GFW | |
| "RULE-SET,ProxyGFWlist,🚀 节点选择", | |
| // 必须 | |
| "GEOIP,LAN,🔗 全局直连,no-resolve", | |
| "GEOIP,CN,🔗 全局直连,no-resolve", | |
| "MATCH,🐟 漏网之鱼", | |
| ]; | |
| // ======================== | |
| // 🌐 代理组通用配置定义 | |
| // ======================== | |
| const groupBaseOption = { | |
| interval: 300, | |
| timeout: 3000, | |
| url: "https://i.ytimg.com/generate_204", | |
| lazy: true, | |
| "max-failed-times": 3, | |
| hidden: false, | |
| }; | |
| // 程序入口 | |
| function main(config) { | |
| const proxyCount = config?.proxies?.length ?? 0; | |
| const proxyProviderCount = | |
| typeof config?.["proxy-providers"] === "object" | |
| ? Object.keys(config["proxy-providers"]).length | |
| : 0; | |
| if (proxyCount === 0 && proxyProviderCount === 0) { | |
| throw new Error("配置文件中未找到任何代理"); | |
| } | |
| // 覆盖原配置中DNS配置 | |
| config["dns"] = dnsConfig; | |
| // 覆盖原配置中的代理组 | |
| config["proxy-groups"] = [ | |
| { | |
| ...groupBaseOption, | |
| name: "🚀 节点选择", | |
| type: "select", | |
| proxies: [ | |
| "⚡ 延迟选优", | |
| "🚨 故障转移", | |
| "⚖️ 负载均衡(散列)", | |
| "⚖️ 负载均衡(轮询)", | |
| "🇺🇸 美国节点", | |
| "🇭🇰 香港节点", | |
| "🇸🇬 狮城节点", | |
| "🇹🇼 台湾节点", | |
| "🇯🇵 日本节点", | |
| "🎏 其他节点", | |
| ], | |
| icon: "https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/adjust.svg", | |
| }, | |
| { | |
| ...groupBaseOption, | |
| url: "https://chatgpt.com", | |
| "expected-status": "200", | |
| name: "💬 OpenAi", | |
| type: "select", | |
| proxies: [ | |
| "🚀 节点选择", | |
| "⚡ 延迟选优", | |
| "🚨 故障转移", | |
| "⚖️ 负载均衡(散列)", | |
| "⚖️ 负载均衡(轮询)", | |
| "🔗 全局直连", | |
| ], | |
| icon: "https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/chatgpt.svg", | |
| }, | |
| { | |
| ...groupBaseOption, | |
| name: "🎮 游戏平台", | |
| type: "select", | |
| proxies: [ | |
| "🚀 节点选择", | |
| "⚡ 延迟选优", | |
| "🚨 故障转移", | |
| "⚖️ 负载均衡(散列)", | |
| "⚖️ 负载均衡(轮询)", | |
| "🔗 全局直连", | |
| ], | |
| icon: "https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/steam.svg", | |
| }, | |
| { | |
| ...groupBaseOption, | |
| name: "📹 国外媒体", | |
| type: "select", | |
| proxies: [ | |
| "🚀 节点选择", | |
| "⚡ 延迟选优", | |
| "🚨 故障转移", | |
| "⚖️ 负载均衡(散列)", | |
| "⚖️ 负载均衡(轮询)", | |
| "🔗 全局直连", | |
| ], | |
| icon: "https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/youtube.svg", | |
| }, | |
| { | |
| ...groupBaseOption, | |
| name: "✈️ Telegram", | |
| type: "select", | |
| proxies: [ | |
| "🚀 节点选择", | |
| "⚡ 延迟选优", | |
| "🚨 故障转移", | |
| "⚖️ 负载均衡(散列)", | |
| "⚖️ 负载均衡(轮询)", | |
| "🔗 全局直连", | |
| ], | |
| icon: "https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/telegram.svg", | |
| }, | |
| { | |
| ...groupBaseOption, | |
| name: "🔍 Bing", | |
| type: "select", | |
| url: "https://copilot.microsoft.com", | |
| "expected-status": "200", | |
| proxies: [ | |
| "🚀 节点选择", | |
| "⚡ 延迟选优", | |
| "🚨 故障转移", | |
| "⚖️ 负载均衡(散列)", | |
| "⚖️ 负载均衡(轮询)", | |
| "🔗 全局直连", | |
| ], | |
| icon: "https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/bing.svg", | |
| }, | |
| { | |
| ...groupBaseOption, | |
| name: "📢 谷歌服务", | |
| type: "select", | |
| proxies: [ | |
| "🚀 节点选择", | |
| "⚡ 延迟选优", | |
| "🚨 故障转移", | |
| "⚖️ 负载均衡(散列)", | |
| "⚖️ 负载均衡(轮询)", | |
| "🔗 全局直连", | |
| ], | |
| icon: "https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/google.svg", | |
| }, | |
| { | |
| ...groupBaseOption, | |
| name: "Ⓜ️ 微软服务", | |
| type: "select", | |
| proxies: [ | |
| "🔗 全局直连", | |
| "🚀 节点选择", | |
| "⚡ 延迟选优", | |
| "🚨 故障转移", | |
| "⚖️ 负载均衡(散列)", | |
| "⚖️ 负载均衡(轮询)", | |
| ], | |
| icon: "https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/microsoft.svg", | |
| }, | |
| { | |
| ...groupBaseOption, | |
| name: "🍎 苹果服务", | |
| type: "select", | |
| proxies: [ | |
| "🚀 节点选择", | |
| "⚡ 延迟选优", | |
| "🚨 故障转移", | |
| "⚖️ 负载均衡(散列)", | |
| "⚖️ 负载均衡(轮询)", | |
| "🔗 全局直连", | |
| ], | |
| icon: "https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/apple.svg", | |
| }, | |
| { | |
| ...groupBaseOption, | |
| name: "📺 国内媒体", | |
| type: "select", | |
| proxies: [ | |
| "🔗 全局直连", | |
| "🚀 节点选择", | |
| "⚡ 延迟选优", | |
| "🚨 故障转移", | |
| "⚖️ 负载均衡(散列)", | |
| "⚖️ 负载均衡(轮询)", | |
| ], | |
| icon: "https://fastly.jsdelivr.net/gh/shindgewongxj/WHATSINStash@master/icon/bilibilitv.png", | |
| }, | |
| { | |
| ...groupBaseOption, | |
| name: "🐟 漏网之鱼", | |
| type: "select", | |
| proxies: [ | |
| "🚀 节点选择", | |
| "⚡ 延迟选优", | |
| "🚨 故障转移", | |
| "⚖️ 负载均衡(散列)", | |
| "⚖️ 负载均衡(轮询)", | |
| "🔗 全局直连", | |
| ], | |
| icon: "https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/fish.svg", | |
| }, | |
| { | |
| ...groupBaseOption, | |
| name: "⚡ 延迟选优", | |
| type: "url-test", | |
| tolerance: 100, | |
| "include-all": true, | |
| icon: "https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/speed.svg", | |
| }, | |
| { | |
| ...groupBaseOption, | |
| name: "🚨 故障转移", | |
| type: "fallback", | |
| "include-all": true, | |
| icon: "https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/ambulance.svg", | |
| }, | |
| { | |
| ...groupBaseOption, | |
| name: "⚖️ 负载均衡(散列)", | |
| type: "load-balance", | |
| strategy: "consistent-hashing", | |
| "include-all": true, | |
| icon: "https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/merry_go.svg", | |
| }, | |
| { | |
| ...groupBaseOption, | |
| name: "⚖️ 负载均衡(轮询)", | |
| type: "load-balance", | |
| strategy: "round-robin", | |
| "include-all": true, | |
| icon: "https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/balance.svg", | |
| }, | |
| { | |
| ...groupBaseOption, | |
| name: "🚫 广告拦截", | |
| type: "select", | |
| proxies: ["REJECT", "🔗 全局直连"], | |
| icon: "https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/block.svg", | |
| }, | |
| { | |
| ...groupBaseOption, | |
| name: "🔗 全局直连", | |
| type: "select", | |
| proxies: ["DIRECT", "🚀 节点选择"], | |
| icon: "https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/link.svg", | |
| }, | |
| ]; | |
| const REGION_FILTERS = { | |
| "🇺🇸 美国节点": { | |
| filter: | |
| "美|美国|🇺🇸|波特兰|达拉斯|俄勒冈|凤凰城|费利蒙|硅谷|拉斯维加斯|洛杉矶|圣何塞|圣克拉拉|西雅图|芝加哥|US|USA|United States", | |
| icon: "https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/flags/us.svg", | |
| }, | |
| "🇭🇰 香港节点": { | |
| filter: "港|香港|🇭🇰|HK|Hong Kong", | |
| icon: "https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/flags/hk.svg", | |
| }, | |
| "🇸🇬 狮城节点": { | |
| filter: "新加坡|🇸🇬|坡|狮城|SG|Singapore", | |
| icon: "https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/flags/sg.svg", | |
| }, | |
| "🇹🇼 台湾节点": { | |
| filter: "台|台湾|新北|彰化|TW|Taiwan", | |
| icon: "https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/flags/tw.svg", | |
| }, | |
| "🇯🇵 日本节点": { | |
| filter: "日|日本|🇯🇵|川日|东京|大阪|泉日|埼玉|沪日|深日|JP|Japan", | |
| icon: "https://fastly.jsdelivr.net/gh/clash-verge-rev/clash-verge-rev.github.io@main/docs/assets/icons/flags/jp.svg", | |
| }, | |
| "🎏 其他节点": { | |
| filter: "^(?!.*(美|港|新|台|日|US|HK|SG|TW|JP)).*", | |
| icon: "https://fastly.jsdelivr.net/gh/shindgewongxj/WHATSINStash@master/icon/select.png", | |
| }, | |
| }; | |
| for (const [name, { filter, icon }] of Object.entries(REGION_FILTERS)) { | |
| config["proxy-groups"].push({ | |
| ...groupBaseOption, | |
| name, | |
| filter, | |
| icon, | |
| proxies: ["DIRECT"], | |
| type: "url-test", | |
| "include-all": true, | |
| }); | |
| } | |
| // 覆盖原配置中的规则 | |
| // config["rule-providers"] = ruleProviders; | |
| config["rules"] = rules; | |
| // 返回修改后的配置 | |
| return config; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment