Skip to content

Instantly share code, notes, and snippets.

@kengonakajima
Last active July 10, 2025 07:04
Show Gist options
  • Select an option

  • Save kengonakajima/2370b9a080c586fecfd7bfe8a85039af to your computer and use it in GitHub Desktop.

Select an option

Save kengonakajima/2370b9a080c586fecfd7bfe8a85039af to your computer and use it in GitHub Desktop.
function FindProxyForURL(url, host) {
if (shExpMatch(host, "example.com") || shExpMatch(host, "*.example.com")) {
return "PROXY localhost:3128";
}
return "DIRECT";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment