Skip to content

Clash Verge Rev

  • 指定网站不走代理

订阅-全局扩展脚本-右键-编辑文件

js
const domains = [
  "bing.com",
];
const ips = [
  "150.158.163.31",
];

const custom = [
  ...domains.map(domain => `DOMAIN-SUFFIX,${domain},DIRECT,no-resolve`),
  ...ips.map(ip => `IP-CIDR,${ip}/32,DIRECT,no-resolve`)
];

function main(config, profileName) {
  config.rules = [
    ...custom,
    ...config.rules
  ];
  • 修改 hosts

订阅-全局扩展覆写配置-右键-编辑文件

yml
profile:
  store-selected: true

dns:
  use-system-hosts: false

hosts:
  www.google.com: 8.8.8.8
  res.google.com: 8.8.8.8,1.1.1.1,2.2.2.2
  api.googole.com: 8.8.8.8