{"id":51430575,"url":"https://github.com/mcxiaochenn/clash_override_script_for_cn","last_synced_at":"2026-07-05T04:00:39.348Z","repository":{"id":367065701,"uuid":"1276666791","full_name":"mcxiaochenn/Clash_Override_Script_For_CN","owner":"mcxiaochenn","description":"mihomo (Clash Meta) 覆写脚本，基于 Loyalsoldier/clash-rules 规则集，支持按地区自动分组、AI 服务分流、广告过滤","archived":false,"fork":false,"pushed_at":"2026-07-04T02:00:40.000Z","size":78,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-04T04:05:09.141Z","etag":null,"topics":["clash","clash-meta","clash-verge","cn","loyalsoldier","mihomo","override","proxy","rule-set"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mcxiaochenn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-06-22T07:25:37.000Z","updated_at":"2026-07-04T02:00:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mcxiaochenn/Clash_Override_Script_For_CN","commit_stats":null,"previous_names":["mcxiaochenn/clash_override_script_for_cn"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/mcxiaochenn/Clash_Override_Script_For_CN","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcxiaochenn%2FClash_Override_Script_For_CN","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcxiaochenn%2FClash_Override_Script_For_CN/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcxiaochenn%2FClash_Override_Script_For_CN/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcxiaochenn%2FClash_Override_Script_For_CN/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mcxiaochenn","download_url":"https://codeload.github.com/mcxiaochenn/Clash_Override_Script_For_CN/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mcxiaochenn%2FClash_Override_Script_For_CN/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35142824,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-05T02:00:06.290Z","response_time":100,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clash","clash-meta","clash-verge","cn","loyalsoldier","mihomo","override","proxy","rule-set"],"created_at":"2026-07-05T04:00:30.425Z","updated_at":"2026-07-05T04:00:39.293Z","avatar_url":"https://github.com/mcxiaochenn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Clash Override Script For CN / 适合中国宝宝体质的 Clash 覆写脚本\n\n基于 [mcxiaochenn/clash-rules-cn](https://github.com/mcxiaochenn/clash-rules-cn) 的 mihomo (Clash Meta) 覆写脚本，适用于 [Clash Verge Rev](https://github.com/clash-verge-rev/clash-verge-rev)。\n\n## 功能特性\n\n- 基于 mcxiaochenn/clash-rules-cn 聚合规则集（CDN 加速）\n- 按地区自动分组：香港、日本、美国、韩国、台湾、新加坡、英国、德国、法国、印度、澳门、马来西亚、荷兰、立陶宛\n- AI 服务单独分组（OpenAI、Anthropic、Google Gemini 等，默认走美国节点）\n- 广告过滤默认关闭（可手动开启）\n- 支持用户自定义直连 IP/域名（Tailscale、WireGuard 等）\n- GeoIP 数据源统一使用 clash-rules-cn（Country.mmdb / Country-asn.mmdb）\n- 空节点组自动回退 DIRECT，不会报错\n\n## 版本说明\n\n| 类型 | 版本格式 | 说明 | 更新频率 |\n|------|----------|------|----------|\n| 稳定版 | `vYYYY.MM.DD.NB` | 经过验证的正式版本（Latest） | 手动发布 |\n| 每日版 | `vYYYY.MM.DD.NB` | 包含最新功能的自动构建版（Pre-release） | 每日北京时间 8:00 |\n\n\u003e `NB` 为当日第几次发布，从 01 开始递增，新的一天重置。使用 Asia/Shanghai 时区。命名格式统一，仅 Latest / Pre-release 标签不同。\n\n## 使用方式\n\n### 方式一：自动更新（推荐）\n\n在 Clash Verge Rev 的覆写脚本配置中使用以下 URL，可自动获取最新版本，无需手动更新：\n\n**稳定版（推荐）：**\n\nGitHub：\n```\nhttps://github.com/mcxiaochenn/Clash_Override_Script_For_CN/releases/latest/download/mihomo-cn-override.js\n```\n\nCDN（国内推荐）：\n```\nhttps://cdn.jsdelivr.net/gh/mcxiaochenn/Clash_Override_Script_For_CN@latest/build/latest/mihomo-cn-override-latest.js\n```\n\n**每日版：**\n\nGitHub：前往 [Releases](https://github.com/mcxiaochenn/Clash_Override_Script_For_CN/releases) 页面下载 Pre-release 版本\n\nCDN（国内推荐）：\n```\nhttps://cdn.jsdelivr.net/gh/mcxiaochenn/Clash_Override_Script_For_CN@latest/build/daily/mihomo-cn-override-daily.js\n```\n\n\u003e GitHub 稳定版 URL 始终指向 Latest 标记的版本；CDN URL 有缓存延迟。\n\n### 方式二：手动下载\n\n前往 [Releases](https://github.com/mcxiaochenn/Clash_Override_Script_For_CN/releases) 页面下载对应版本：\n\n- **稳定版**（Latest 标记）：经过验证的正式版本\n- **每日版**（Pre-release 标记）：每日自动构建，包含最新功能\n\n### 方式三：手动导入\n\n1. 下载 `mihomo-cn-override.js` 文件\n2. 打开 Clash Verge Rev → 设置 → 覆写脚本\n3. 导入下载的脚本文件\n\n## 自定义配置\n\n编辑 `mihomo-cn-override.js` 顶部的用户自定义区域：\n\n### 添加直连 IP\n\n```javascript\nconst directIPs = [\n  \"192.168.1.0/24\",          // 局域网段\n  \"100.64.0.0/10\",           // Tailscale 虚拟网络\n  // 在这里添加你的 IP...\n];\n```\n\n### 添加直连域名\n\n```javascript\nconst directDomains = [\n  \"+.local\",                 // mDNS 本地域名\n  \"+.lan\",                   // 局域网域名\n  // 在这里添加你的域名...\n];\n```\n\n### CIDR 格式速查\n\n| 格式 | 覆盖范围 | 适用场景 |\n|------|----------|----------|\n| `192.168.1.1/32` | 仅 1 个 IP | 单台设备 |\n| `192.168.1.0/24` | 256 个 IP | 一个子网 |\n| `10.0.0.0/8` | 1677 万个 IP | 整个 A 类内网 |\n\n## 代理组结构\n\n```\n节点选择（手动选择）\n├── 🇭🇰 香港（自动选择，隐藏）\n├── 🇯🇵 日本（自动选择，隐藏）\n├── 🇺🇸 美国（自动选择，隐藏）\n├── 🇰🇷 韩国（自动选择，隐藏）\n├── 🇨🇳 台湾（自动选择，隐藏）\n├── 🇸🇬 新加坡（自动选择，隐藏）\n├── 🇬🇧 英国（自动选择，隐藏）\n├── 🇩🇪 德国（自动选择，隐藏）\n├── 🇫🇷 法国（自动选择，隐藏）\n├── 🇮🇳 印度（自动选择，隐藏）\n├── 🇲🇴 澳门（自动选择，隐藏）\n├── 🇲🇾 马来西亚（自动选择，隐藏）\n├── 🇳🇱 荷兰（自动选择，隐藏）\n├── 🇱🇹 立陶宛（自动选择，隐藏）\n├── 其它地区（自动选择，隐藏）\n└── 全部节点（自动选择，隐藏）\n\nAI（默认美国）\n电报消息\n苹果服务\n广告过滤（默认关闭）\n全局直连\n漏网之鱼\n```\n\n## 许可证\n\n[MIT](LICENSE) © [辰渊尘(ChenDusk)](https://blog.mcxiaochen.top)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcxiaochenn%2Fclash_override_script_for_cn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmcxiaochenn%2Fclash_override_script_for_cn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmcxiaochenn%2Fclash_override_script_for_cn/lists"}