Excellent software and practical tutorials
Clash for Windows has enhanced functions, Parsers multi-threaded download
Clash for Windows CFWIt can be said to be the best proxy software at present, with rich functions, clear interface and easy to use. Parsers Function, to achieve multi-threaded download. Students familiar with Clash should know that Clash provides a function interface for customizing new rules, which is very friendly to novices. The following introduces a method of using Clash's Parsers function.
How to use Parsers in Clash for Windows
Open Setting(Settings), find Profiles(under the configuration file) Parsers .
Click Edit on the right to open the editing interface. Enter the following code
Use Parsers to automatically add load balancing in CFW
parsers: - reg: 'slbable$' yaml: append-proxy-groups: - name: ⚖️ load-balance-hash type: load-balance url: 'http://www.google.com/generate_204' interval: 300 strategy: consistent-hashing - name: ⚖️ load-balance-round-robin type: load-balance url: 'http://www.google.com/generate_204' interval: 300 strategy: round-robin commands: - proxy-groups.⚖️ load-balance-hash.proxies=[]proxyNames - proxy-groups.0.proxies.0+⚖️ load-balance-hash- proxy-groups.⚖️ Load balancing-round robin.proxies=[]proxyNames - proxy-groups.0.proxies.0+⚖️ Load balancing-round robin
Manually add a load balancer
# Add to first proxy strategy group - ⚖️ load-balance-round robin - ⚖️ load-balance-hashing # Add proxy strategy group - name: ⚖️ load-balance-hashing type: load-balance url: http://www.google.com/generate_204 interval: 300 strategy: consistent-hashing proxies: - P1 - P2 - P3 - name: ⚖️ load-balance-round robin type: load-balance url: http://www.google.com/generate_204 interval: 300 strategy: round-robin proxies: - P1 - P2 - P3
By using the Parsers feature in Clash for Windows, multi-threaded downloading can be achieved.
Clash download: https://github.com/Fndroid/clash_for_windows_pkg/releases
Clash official website: https://docs.cfw.lbyczf.com/
Use Prasers to update subscriptions and change the old configuration to the new configuration
Windows
For users of 0.19.4 and below, no changes are required. For users of 0.19.5 and above, please click Settings-Profiles-Parsers-Edit, delete the default parsers: #array, and paste the following content.
parsers: - reg: '^.*$' code: | module.exports.parse = async (raw, { axios, yaml, notify, console }, { name, url, interval, selected }) => { const obj = yaml.parse(raw) obj.proxies.forEach( v => { if (v.network === 'ws' && !v['ws-opts'] && v['ws-path'] && !v['ws-headers']) { const opts = {} opts.path = v['ws-path'] v['ws-opts'] = opts delete v['ws-path'] } if (v.network === 'ws' && !v['ws-opts'] && v['ws-path'] && v['ws-headers']) { const opts = {} opts.path = v['ws-path'] opts.headers = v['ws-headers'] v['ws-opts'] = opts delete v['ws-path'] delete v['ws-headers'] } }) return yaml.stringify(obj) }
Then renew your subscription.
Note: The parsers content only takes effect when you update the subscription. Be sure to update the subscription once.
MAC
For Mac users of Clash for Windows, the operation method is the same as Windows
For Clash X users, please use version 1.72.0 and earlier. If you cannot accept the older version, please modify it manually or switch to CFW Mac version.
Android
Please use version 2.5.3 and earlier. If you cannot accept the old version, you can modify it manually or import the subscription file modified by CFW into your phone.
Linux
For users of the Linux version of Clash for Windows, the operation method is the same as that of Windows
Shellclash users, please modify the configuration manually.
router
Openclash users, please update to the latest version, the new version has completed the adaptation of the old configuration!
How to manually modify the configuration file:
Old configuration
ws-path: /XXXX ws-headers: Host: example.com
New Configuration
ws-opts: path: /XXXX headers: Host: example.com
When editing the parsers content, please pay attention to the spaces. If you ignore the spaces, the configuration will report an error.
How to set up Telegram proxy to access the Internet with Clash For Windows