-
-
Save orion1vi/5e75d13f66ff4eaf941891bce79261ec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function FindProxyForURL(url, host) | |
| { | |
| proxies = [ | |
| ["127.0.0.1:9050", | |
| "nyaa.si", | |
| ], | |
| ]; | |
| for (var x = 0; x < proxies.length; x++) | |
| for (var y = 1; y < proxies[x].length; y++) | |
| if (host == proxies[x][y] || shExpMatch(host, "*." + proxies[x][y])) | |
| return "SOCKS " + proxies[x][0]; | |
| return "DIRECT"; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment