Pain points of resolution
- In the process of development and debugging, it is often necessary to forward online or daily environment resources to the local. Charles and other local agent tools, especially after the whole network HTTPS, become more complicated and tedious.
- The existing Chrome plugin, in its interactive form, is not very friendly to programmers and cannot solve the need to quickly locate a rule or switch groups quickly.
- Anyproxy is a good tool, but it’s a hassle to configure when it comes to browser forwarding.
The advantage of XSwitch
- Ready-to-use with Chrome Extension. No additional environment configuration is required.
- Based on the Monaco Editor, you can use the shortcuts that come with the Editor.
- You can write JSON comments.
- Save and take effect immediately.
- Automatic prompt page loaded into the resource file, as a reminder (currently only grab HTTP (s) address, other protocols ignored)
- Open Source
function
If the following rules are set:
The following will be forwarded:
Automatic prompt support
Support for regular matching
Github.com/yize/xswitc…
{
// proxyRules
"proxy": [
[
"//g.alicdn.com/platform/daily-test/(.*).js$",
"//g.alicdn.com/platform/daily-test/$1.json"
],
[
"g.alicdn.com",
"alinw.alicdn.com"
]
]
}
Copy the code
Logo
It looks like a programmer’s hairline
I hope XSwitch can give you some help or ideas.
Welcome to try out, welcome suggestions.
Links
- Go to the Chrome Web Store to download
- XSwitch – Github