Skip to content

Instantly share code, notes, and snippets.

@turesheim
Last active June 21, 2022 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save turesheim/84cf439c3895220b13eaffd6466e3815 to your computer and use it in GitHub Desktop.
Save turesheim/84cf439c3895220b13eaffd6466e3815 to your computer and use it in GitHub Desktop.
function FindProxyForURL(url, host) {
var ProxyConfig = "DIRECT";
if( dnsDomainIs(host, ".cp.ads.domstol.no")) {
ProxyConfig = "SOCKS localhost:1283";
}
return ProxyConfig;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment