Clash订阅【后端配置】-【parsers】.md 1.9 KB


notion-id: 2d4eb612-d960-4f2d-a824-de4a327e79

subconverter下载 https://github.com/tindy2013/subconverter subconverter使用说明 https://github.com/tindy2013/subconverter/blob/master/README-cn.md 在机器上安装subconverter然后运行,通过加载远程配置规则,不用修改本地配置规则

https://docs.cfw.lbyczf.com/contents/parser.html#简便方法-yaml https://www.ottoli.cn/howto/clash-chatgpt 注意更新以后,需要更新订阅。 样本1:

parsers: # array
  - url: [此处输入你的节点订阅链接]
    yaml:
      prepend-proxy-groups:  # 在proxy-groups最前面增加代理分组
        - name: ChatGPT
          type: select
          proxies:
            - [此处输入你的节点名]
            - [例如:]
            - [美国01]
            - [美国02]
            - [加拿大]
            - [德国]
      prepend-rules:  # 在rules最前面增加规则
        - DOMAIN-SUFFIX,openai.com,ChatGPT
        - DOMAIN-KEYWORD,openai,ChatGPT
        - DOMAIN-SUFFIX,openaiapi-site.azureedge.net,ChatGPT
        - DOMAIN-SUFFIX,identrust.com,ChatGPT
        - DOMAIN-SUFFIX,auth0.com,ChatGPT

样本2:

parsers: # array
  - url: https://n3.leensasub.net/api/v1/client/subscribe?token=a8ce57535a915343a63033af9fa6ee25
    yaml:
      prepend-proxy-groups:  # 在proxy-groups最前面增加代理分组
        - name: ChatGPT
          type: select
          proxies:
            - SG05
      prepend-rules:  # 在rules最前面增加规则
        - DOMAIN-SUFFIX,openai.com,ChatGPT
        - DOMAIN-KEYWORD,openai,ChatGPT
        - DOMAIN-SUFFIX,openaiapi-site.azureedge.net,ChatGPT
        - DOMAIN-SUFFIX,identrust.com,ChatGPT
        - DOMAIN-SUFFIX,auth0.com,ChatGPT