<script src="https://jc3213.github.io/easyproxy.js/easyproxy.js"></script>
// @require https://jc3213.github.io/easyproxy.js/easyproxy.js
let router = new EasyProxy();
let { routing } = router;
let { pacScript } = router;
router.new(proxy | string"");
router.new(proxy | string"", rules | array[]);
router.add(proxy | string"", rule | string"");
router.delete(proxy | string"", rule | string"");
router.remove(proxy | string"");
let result = router.match(host | string"");
let rules = router.getRules(proxy | string"");
let pasScript = router.getScript(proxy | string"");
let { pacScript } = EasyProxy;
let rule = EasyProxy.make(host | string"");
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 |
❌ |
❌ |
❌ |
❌ |