Skip to content

Instantly share code, notes, and snippets.

@deathstalkr
Last active July 31, 2024 05:58
Show Gist options
  • Save deathstalkr/00cf557b941a0e65df8fccbcf8713ed9 to your computer and use it in GitHub Desktop.
Save deathstalkr/00cf557b941a0e65df8fccbcf8713ed9 to your computer and use it in GitHub Desktop.
Proxy script
function FindProxyForURL(url, host) {
// If the hostname matches specific domains, use corresponding proxies
if (dnsDomainIs(host, ".ultimatix.net")) {
return "PROXY 10.66.18.50:3128";
} else if (dnsDomainIs(host, ".bing.com") && url.includes("/chat")) {
return "PROXY 10.66.18.50:3128";
} else if (dnsDomainIs(host, ".kaggle.com")) {
return "PROXY 10.5.18.50:3128";
} else {
// For all other sites, use the default proxy
return "PROXY 10.12.11.13:3128";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment