Skip to content

Instantly share code, notes, and snippets.

@mnmly
Last active October 20, 2021 16:09
Show Gist options
  • Save mnmly/7b93a0b8326e3efe05d3b9451c7ac301 to your computer and use it in GitHub Desktop.
Save mnmly/7b93a0b8326e3efe05d3b9451c7ac301 to your computer and use it in GitHub Desktop.
function FindProxyForURL(url, host) {
PROXY = "PROXY 127.0.0.1:1234";
alert(url);
if (shExpMatch(host, "*.alp-official.jp") ) {
// if ( shExpMatch(url, "*/js/*") ) {
return PROXY;
// }
}
// Everything else directly!
return "DIRECT";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment