<script src="https://jc3213.github.io/easyproxy.js/easyproxy.js"></script>
// @require https://jc3213.github.io/easyproxy.js/easyproxy.js
const router = new EasyProxy();
const { routing } = router;
const { pacScript } = router;
router.getScript(proxy | string"");
router.addProxy(proxy | string"", rule | Array[] | null);
router.removeProxy(proxy | string"");
const result = router.hasProxy(proxy | string"");
const proxies = router.listProxies();
const result = router.findProxy(hostname | location.hostname | new URL().hostname | string"");
router.addRule(proxy | string"", rule | string"");
router.removeRule(proxy | string"", rule | string"");
const result = router.hasRule(rule | string"");
const rules = router.getRules(proxy | string"");
const object = router.getRules();
const pasScript = router.getScript(proxy | string"");
const { pacScript } = EasyProxy;
const rule = EasyProxy.make(hostname | location.hostname | new URL().hostname | string"");
const pacScript = EasyProxy.getScript(Array[ router | instance ]);
example.com
- Matches
www.example.com, example.com
- Exclude
test-example.com, www.example.com.cn
| Match Pattern ↓ |
www.youtube.com |
www.facebook.net |
x.com |
telegram.org |
| * |
✅ |
✅ |
✅ |
✅ |
| youtube.com |
✅ |
❌ |
❌ |
❌ |
| facebook.com |
❌ |
✅ |
❌ |
❌ |
| x.com |
❌ |
❌ |
✅ |
❌ |
| com |
✅ |
❌ |
✅ |
❌ |
| org |
❌ |
❌ |
❌ |
✅ |
| youtube |
❌ |
❌ |
❌ |
❌ |
| telegram |
❌ |
❌ |
❌ |
❌ |