id: dbe2ba118584464c92e1340b2381ad41
parent_id: 
item_type: 1
item_id: 6ef43fbb63ab4bd6b50a5af33a006b10
item_updated_time: 1764345469456
title_diff: "[{\"diffs\":[[1,\"有没有优雅的 Clash 规则修改方式 - V2EX\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":26}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>有没有优雅的 Clash 规则修改方式 - V2EX</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"3815\\\"></a>\\\r\\\n<h1>有没有优雅的 Clash 规则修改方式 - V2EX</h1>\\\r\\\n\\\r\\\n<div><span>\\\n  <div style=\\\"--en-clipped-content:simplified\\\">\\\n<div><br/></div><div style=\\\"font-size: 16px; display:block; min-width: 100%;\\\"> <div style=\\\"background-color:transparent;font:inherit;vertical-align:baseline;\\\"><div style=\\\"background-color:transparent;font:inherit;vertical-align:baseline;font-family:&quot;PT Serif&quot;;font-size:16px;line-height:1.5em;color:rgb(31, 9, 9);text-align:left;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;width:36em;z-index:200;padding-left:2em;padding-right:2em;margin-left:auto;margin-right:auto;position:relative;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;position:relative;margin-left:-25px;margin-right:25px;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;padding-top:0px;padding-bottom:9em;position:relative;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;position:relative;margin-bottom:0px;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\"><h1 style=\\\"font-family:&quot;PT Serif&quot;;text-align:left;border:0px;font:inherit;vertical-align:baseline;font-size:35px;font-weight:normal;line-height:35px;margin-bottom:20px;padding:0px;margin:0px;\\\">有没有优雅的 Clash 规则修改方式</h1><div style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;position:relative;height:1em;line-height:1;text-align:center;margin:0px;padding-top:1.5em;padding-bottom:1.5em;margin-bottom:0px;\\\"><div style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;background:-webkit-linear-gradient(0deg, rgb(243, 242, 238) 1%, rgb(31, 9, 9) 50%, rgb(243, 242, 238) 99%);position:absolute;left:-4em;top:50%;z-index:10;width:100%;padding-left:4em;padding-right:4em;height:0.1em;opacity:0.5;margin:0px;margin-bottom:0px;\\\"><span style=\\\"font:inherit;position:absolute;left:-4em;top:50%;z-index:10;width:100%;padding-left:4em;padding-right:4em;height:0.1em;margin:0px;opacity:0.5;background:-webkit-linear-gradient(0deg, rgb(243, 242, 238) 1%, rgb(31, 9, 9) 50%, rgb(243, 242, 238) 99%);\\\"></span></div></div></div>\\\n   <small style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;\\\"><a href=\\\"https://www.v2ex.com/member/traffic\\\" style=\\\"color:rgb(6, 85, 136);margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;text-decoration:none;\\\" target=\\\"_blank\\\">traffic</a> · 169 天前 · 7161 次点击</small>\\\n\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">这是一个创建于 169 天前的主题，其中的信息可能已经有所发展或是发生改变。</div>\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\">\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\"><p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">我目前的 CLASH 订阅使用方式是</p>\\\n<ul style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;margin:0px 0px 1.5em 1.5em;list-style:none;margin-top:-1em;list-style-type:disc;\\\">\\\n<li style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;list-style-type:inherit;list-style-position:outside;\\\">\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\">获取机场订阅；</p>\\\n</li>\\\n<li style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;list-style-type:inherit;list-style-position:outside;\\\">\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\">放入机场提供的 <a href=\\\"https://github.com/tindy2013/subconverter\\\" style=\\\"color:rgb(6, 85, 136);margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;text-decoration:none;\\\" target=\\\"_blank\\\">subconverter</a> 并自定义规则为 ACL4SSR ，见订阅链接例子；</p>\\\n</li>\\\n<li style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;list-style-type:inherit;list-style-position:outside;\\\">\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\">使用 <a href=\\\"https://docs.cfw.lbyczf.com/contents/parser.html\\\" style=\\\"color:rgb(6, 85, 136);margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;text-decoration:none;\\\" target=\\\"_blank\\\">Clash For Windows 的 Parser 功能</a>，修改添加自定义规则；</p>\\\n</li>\\\n</ul>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">Parser 很好用，能够添加策略组、新订阅、新节点等等。</p>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">但是手机、路由器该怎么办呢？ Parser 是 Clash For Windows 独有的功能。</p>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">所以想请教各位，有没有什么办法能够直接在订阅链接里就将规则自定义(基于某个现有规则修改)完成，而不需要依赖于特定客户端。</p>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">这样既不用自己维护基础规则，又能根据自己的需要进行修改，同时不局限于某个客户端实现。\\\n</p>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">订阅链接例子：</p>\\\n<pre style=\\\"border-radius:4px;background-color: #fbfaf8;border: 1px solid rgba(0,0,0,.14902);color: #333;font-size: 12px;padding: 8px;font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif;box-sizing: border-box;\\\"><code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">https://acl4ssr-sub.github.io//sub?target=clash&amp;new_name=true&amp;url=&lt;订阅链接&gt;&amp;insert=false&amp;config=https%3A%2F%2Fraw.githubusercontent.com%2FACL4SSR%2FACL4SSR%2Fmaster%2FClash%2Fconfig%2FACL4SSR_Online_Full_MultiMode.ini&amp;emoji=true&amp;list=false&amp;tfo=false&amp;scv=false&amp;fdn=false&amp;sort=false&amp;clash.doh=true&amp;new_name=true&amp;append_type=true&amp;udp=true&amp;scv=true\\\n</code></pre>\\\n<p style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">Parser 例子：</p>\\\n<pre style=\\\"border-radius:4px;background-color: #fbfaf8;border: 1px solid rgba(0,0,0,.14902);color: #333;font-size: 12px;padding: 8px;font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif;box-sizing: border-box;\\\"><code style=\\\"font-size: 9pt; color: rgb(51, 51, 51); font-family: Monaco,Menlo,Consolas,Courier New,monospace,sans-serif\\\">parsers: # array\\\n  #匹配所有这个开头的规则\\\n  - reg: https://(acl4ssr-sub|sub.xeton).dev.+$\\\n    yaml:\\\n      #mix-object:\\\n       # authentication:\\\n        #  - &quot;proxy:K&quot;\\\n      append-proxies: #添加自定义节点\\\n        - name: &quot;socks5 代理&quot;\\\n          type: socks5\\\n          server: geo.\\\n          port: 42\\\n          username: \\\n          password: \\\n          # tls: true\\\n          # skip-cert-verify: true\\\n          # udp: true\\\n      append-proxy-groups: # 添加自定义策略组\\\n        - name:  土耳其节点\\\n          type: select\\\n          url: http://www.gstatic.com/generate_204\\\n          interval: 300\\\n          proxies:\\\n            - DIRECT\\\n            -  节点选择\\\n        - name:  欧洲节点\\\n          type: select\\\n          url: http://www.gstatic.com/generate_204\\\n          interval: 300\\\n          proxies:\\\n            - DIRECT\\\n            -  节点选择\\\n        - name:  欧盟节点\\\n          type: select\\\n          url: http://www.gstatic.com/generate_204\\\n          interval: 300\\\n          proxies:\\\n            - DIRECT\\\n            -  节点选择\\\n        - name:  大流量\\\n          type: select\\\n          url: http://www.gstatic.com/generate_204\\\n          interval: 300\\\n          proxies:\\\n            - DIRECT\\\n          use:\\\n            - hightraffic\\\n            #- hightraffic2\\\n        - name:  大流量选择器\\\n          type: select\\\n          url: http://www.gstatic.com/generate_204\\\n          interval: 300\\\n          proxies:\\\n            - DIRECT\\\n          use:\\\n            - hightraffic\\\n            #- hightraffic2\\\n        - name:  大流量负载均衡\\\n          type: load-balance\\\n          url: http://www.gstatic.com/generate_204\\\n          interval: 300\\\n          use:\\\n            - hightraffic\\\n            #- hightraffic2\\\n        - name:  大流量自动选择\\\n          type: url-test\\\n          url: http://www.gstatic.com/generate_204\\\n          interval: 300\\\n          use:\\\n            - hightraffic\\\n            #- hightraffic2\\\n      mix-proxy-providers:  #添加自定义规则组\\\n        hightraffic: \\\n          type: http \\\n          path: ./Proxy/hightraffic.yaml \\\n          #大流量机场的订阅链接，需要是 clash 格式\\\n          url: https://\\\n          interval: 21600 \\\n          health-check:  \\\n              enable: true\\\n              url: http://www.gstatic.com/generate_204\\\n              interval: 300\\\n      commands:\\\n        # 向 策略组 内添加节点\\\n        #- proxy-groups. 大流量.proxies=[]proxyNames|^(?=(.Trojan.*(香港)))\\\\1((?!(Hongkong)).)*$\\\n        #- proxy-groups. 大流量负载均衡.proxies=[]proxyNames|^(?=(.Trojan.*(香港)))\\\\1((?!(Hongkong)).)*$\\\n        # 向 其他策略组 添加 该策略组\\\n        - proxy-groups. 节点选择.proxies.0+ 大流量 # 向  节点选择 策略组添加组名大流量  \\\n        - proxy-groups. 节点选择.proxies.0+ 大流量负载均衡\\\n        - proxy-groups. 节点选择.proxies.0+ 大流量自动选择\\\n        - proxy-groups.Ⓜ️ 微软云盘.proxies.0+ 大流量\\\n        - proxy-groups.Ⓜ️ 微软云盘.proxies.0+ 大流量负载均衡\\\n        - proxy-groups.Ⓜ️ 微软云盘.proxies.0+ 大流量自动选择\\\n\\\n      prepend-rules:  #添加自定义规则\\\n        # 自定义开始\\\n        - DOMAIN-SUFFIX,example.com,♻️ 自动选择</code></pre>\\\n</div></div>\\\n</div>\\\n</div></div></div><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;position:absolute;top:-1000px;left:-1000px;\\\">Measure</div><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;position:absolute;top:-1000px;left:-1000px;line-height:1;margin-bottom:0px;\\\">Measure</div></div></div></div></div></div></div></div>\\\n</div>\\\n</span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":10471}]"
metadata_diff: {"new":{"id":"6ef43fbb63ab4bd6b50a5af33a006b10","parent_id":"061de1401cfc4cfaadf6e74e015970e9","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764345885499,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":0},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T16:20:25.534Z
created_time: 2025-11-28T16:20:25.534Z
type_: 13