Skip to content

Instantly share code, notes, and snippets.

@YoshitakaMo
Last active March 17, 2025 05:24
Show Gist options
  • Select an option

  • Save YoshitakaMo/665d43dcae24843c8ee6847ea48584ac to your computer and use it in GitHub Desktop.

Select an option

Save YoshitakaMo/665d43dcae24843c8ee6847ea48584ac to your computer and use it in GitHub Desktop.
proxy
function FindProxyForURL(url, host) {
if (shExpMatch(host, "*.isiknowledge.com")
|| shExpMatch(host, "*.webofknowledge.com")
|| shExpMatch(host, "jcp.aip.org")
|| shExpMatch(host, "pubs.acs.org")
|| shExpMatch(host, "www.jbc.org")
|| shExpMatch(host, "*.cas.org")
|| shExpMatch(host, "onlinelibrary.wiley.com")
|| shExpMatch(host, "*.springerlink.com")
|| shExpMatch(host, "informahealthcare.com")
|| shExpMatch(host, "*.sciencedirect.com")
|| shExpMatch(host, "pubs.rsc.org")
|| shExpMatch(host, "*.biochemj.org")
|| shExpMatch(host, "*.nature.com")
|| shExpMatch(host, "*.annualreviews.org")
|| shExpMatch(host, "*.aip.org")
|| shExpMatch(host, "*.asm.org")
|| shExpMatch(host, "*.oup.com")
|| shExpMatch(host, "mic.sgmjournals.org")
|| shExpMatch(host, "*.springer.com")
|| shExpMatch(host, "*.begellhouse.com")
|| shExpMatch(host, "*.pnas.org")
|| shExpMatch(host, "*.aps.org")
|| shExpMatch(host, "*.sciencemag.org")
|| shExpMatch(host, "*.cell.com")
|| shExpMatch(host, "emboj.embopress.org")
|| shExpMatch(host, "*.jstage.jst.go.jp")
|| shExpMatch(host, "scifinder.cas.org")
|| shExpMatch(host, "www.ems-ph.org")
|| shExpMatch(host, "ieeexplore.ieee.org")
|| shExpMatch(host, "www.science.org")
|| shExpMatch(host, "*.wiley.com")
|| shExpMatch(host, "*.natureasia.com")
|| shExpMatch(host, "portlandpress.com")
|| shExpMatch(host, "aip.scitation.org")
|| shExpMatch(host, "*.tmd.ac.jp")
|| shExpMatch(host, "*.titech.ac.jp")
|| shExpMatch(host, "*.cdd.lab")
) {
return "SOCKS5 127.0.0.1:8193; SOCKS 127.0.0.1:8193; DIRECT";
}
else {
return "DIRECT";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment