Skip to content

Instantly share code, notes, and snippets.

@amw
Created November 20, 2019 09:14
Show Gist options
  • Save amw/1ebf13c34ca7baa61ed1380c15ad7927 to your computer and use it in GitHub Desktop.
Save amw/1ebf13c34ca7baa61ed1380c15ad7927 to your computer and use it in GitHub Desktop.
ŚUM proxy auto-config file (modified)
function FindProxyForURL(url, host) {
if (shExpMatch(host, "cdn.clinicalkey.com")) { return "DIRECT" };
if (
//manual
//shExpMatch(host,"*intranet.sum.edu.pl") ||
shExpMatch(host,"*interactelsevier.com") ||
shExpMatch(host,"*ebrary.com") ||
shExpMatch(host,"*intechopen.com") ||
shExpMatch(host,"*clinicalkey.com") ||
shExpMatch(host,"*dynamed.com") ||
shExpMatch(host,"*jcr.incites.thomsonreuters.com") ||
//shExpMatch(host,"*adobedtm.com") ||
//link4 bug
//shExpMatch(host,"*cdngc.net") ||
shExpMatch(host,"*webofknowledge.com") ||
shExpMatch(host,"*serialssolutions.com") ||
shExpMatch(host,"*.mhmedical.com") ||
shExpMatch(host,"*informahealthcare.com") ||
shExpMatch(host,"*informahealthcare.msgfocus.com") ||
shExpMatch(host,"*interactelsevier.com") ||
shExpMatch(host,"*medicinescomplete.com") ||
shExpMatch(host,"*libra.ibuk.pl") ||
shExpMatch(host,"www.jove.com") ||
shExpMatch(host,"www.atlasfizjoterapii.pl") ||
shExpMatch(host,"*alexanderstreet.com") ||
shExpMatch(host,"*batesvisualguide.com") ||
shExpMatch(host,"*usmle-easy.com") ||
shExpMatch(host,"*tandfonline.com") ||
shExpMatch(host,"mikroskop.sum.edu.pl") ||
shExpMatch(host,"oxford.pwn.pl") ||
shExpMatch(host,"www.embase.com") ||
shExpMatch(host,"embase.com") ||
shExpMatch(host,"www.cabdirect.org") ||
shExpMatch(host,"www.cabi.org") ||
shExpMatch(host,"mus.cabi.patron.eb20.com") ||
//dostepy testowe
shExpMatch(host,"*visiblebody.com") ||
shExpMatch(host,"*aclandanatomy.com") ||
shExpMatch(host,"*reaxys.com") ||
//styczen 2014
shExpMatch(host,"*serials.abc-clio.com") ||
shExpMatch(host,"*search.atlaonline.com") ||
shExpMatch(host,"*e-toolbox.com") ||
shExpMatch(host,"*arrc.epnet.com") ||
shExpMatch(host,"*syndetics.com") ||
shExpMatch(host,"*bizsum.com") ||
shExpMatch(host,"*coin3.com") ||
shExpMatch(host,"*ceu.cinahl.com") ||
shExpMatch(host,"*video.nbcuni.com") ||
shExpMatch(host,"*ebsco.truman.consumer.org") ||
shExpMatch(host,"*ebsconet.com") ||
shExpMatch(host,"*expub.com") ||
shExpMatch(host,"*gideononline.net") ||
shExpMatch(host,"*gideononline.com") ||
shExpMatch(host,"*therapy.epnet.com") ||
shExpMatch(host,"*nextreads.com") ||
shExpMatch(host,"*contentcafe2.btol.com") ||
shExpMatch(host,"*ebscostandard.smartimagebase.com") ||
shExpMatch(host,"*ebsco.smartimagebase.com") ||
shExpMatch(host,"*medicalimagedatabase.com") ||
shExpMatch(host,"*serials.abc-clio.com") ||
//generator
shExpMatch(host,"*agro.icm.edu.pl") ||
shExpMatch(host,"*isiknowledge.com") ||
shExpMatch(host,"*karger.com") ||
shExpMatch(host,"*ebofknowledge.com") ||
shExpMatch(host,"*gbl.home.pl") ||
shExpMatch(host,"*bmj.com") ||
shExpMatch(host,"*sciverse.com") ||
shExpMatch(host,"*iaea.org") ||
shExpMatch(host,"*wiley.com") ||
shExpMatch(host,"*isiknowledge.com") ||
shExpMatch(host,"*cambridge.org") ||
shExpMatch(host,"*nih.gov") ||
shExpMatch(host,"ovid.com") ||
shExpMatch(host,"*.ovid.com") ||
shExpMatch(host,"*oxfordjournals.org") ||
shExpMatch(host,"*gbl.waw.pl") ||
shExpMatch(host,"*acs.org") ||
shExpMatch(host,"*sciencedirect.com") ||
shExpMatch(host,"*scopus.com") ||
shExpMatch(host,"*ebscohost.com") ||
shExpMatch(host,"*slownik.mesh.pl") ||
shExpMatch(host,"*springerlink.com") ||
shExpMatch(host,"*ebsco.com") ||
shExpMatch(host,"*thecochranelibrary.com") ||
shExpMatch(host,"*vls1.icm.edu.pl") ||
shExpMatch(host,"*zatoka.icm.edu.pl") ||
//polsl
shExpMatch(host, "*.acs.org") ||
shExpMatch(host, "*.acm.org") ||
shExpMatch(host, "*.aip.org") ||
shExpMatch(host, "*.ams.org") ||
shExpMatch(host, "*.aps.org") ||
shExpMatch(host, "*.cas.org") ||
shExpMatch(host, "*ebscohost.com") ||
shExpMatch(host, "*emeraldinsight.com") ||
shExpMatch(host, "*iaea.org") ||
shExpMatch(host, "*ibuk.pl") ||
shExpMatch(host, "*vls1.icm.edu.pl") ||
shExpMatch(host, "*vls2.icm.edu.pl") ||
shExpMatch(host, "*zatoka.icm.edu.pl") ||
shExpMatch(host, "*ieee.org") ||
shExpMatch(host, "*ingentaconnect.com") ||
shExpMatch(host, "*iopscience.iop.org") ||
shExpMatch(host, "*isiknowledge.com") ||
shExpMatch(host, "*journals.bg.agh.edu.pl") ||
shExpMatch(host, "*knovel.com") ||
shExpMatch(host, "*math.uh.edu") ||
shExpMatch(host, "*mvssa.co.za") ||
shExpMatch(host, "*nature.com") ||
shExpMatch(host, "*reaxys.com") ||
shExpMatch(host, "*rsc.org") ||
shExpMatch(host, "*sciencedirect.com") ||
shExpMatch(host, "*sciencemag.org") ||
shExpMatch(host, "*scopus.com") ||
shExpMatch(host, "*securities.com") ||
shExpMatch(host, "*siam.org") ||
shExpMatch(host, "*springerlink.com") ||
shExpMatch(host, "*wbn.edu.pl") ||
shExpMatch(host, "*wiley.com") ||
shExpMatch(host, "*booksonline.iospress.nl") ||
shExpMatch(host, "*informaworld.com") ||
shExpMatch(host, "*leksyka.pl") ||
shExpMatch(host, "*ebooks.worldscinet.com") ||
shExpMatch(host, "*ntrl.ntis.gov") ||
shExpMatch(host, "*ntrlbeta.ntis.gov") ||
shExpMatch(host, "*oecd-ilibrary.org") ||
shExpMatch(host, "*oxforddictionaries.com") ||
shExpMatch(host, "*oxfordhandbooks.com") ||
shExpMatch(host, "*oxfordscholarship.com") ||
shExpMatch(host, "*digitallibrary.sae.org") ||
shExpMatch(host, "*oxfordjournals.org") ||
shExpMatch(host, "*anatomy.tv") ||
shExpMatch(host, "*webofknowledge.com") ||
shExpMatch(host, "*zentralblatt-math.org") ||
shExpMatch(host, "*site.ebrary.com") ||
shExpMatch(host, "*iopscience.iop.org") ||
shExpMatch(host, "*archiwum.komunalny.home.pl") ||
shExpMatch(host, "*.*.ebscohost.com") ||
shExpMatch(host, "*.ebsco-content.com") ||
shExpMatch(host, "*.proquest.com") ||
shExpMatch(host, "*link.springer.com") ||
shExpMatch(host, "*envplan.com") ||
shExpMatch(host, "*enterprise.astm.org") ||
shExpMatch(host, "*cindasdata.com") ||
shExpMatch(host, "*portal.igpublish.com") ||
shExpMatch(host, "*jstor.org") ||
shExpMatch(host, "*psychsocgerontology.oxfordjournals.org") ||
shExpMatch(host, "*cochraneclinicalanswers.com") ||
shExpMatch(host, "*anatomedia.com") ||
shExpMatch(host, "*uptodate.com") ||
shExpMatch(host, "*anatomediaonline.com") ||
//browzine 2019.10.01
shExpMatch(host, "*thirdiron.com") ||
shExpMatch(host, "*browzine.com") ||
shExpMatch(host, "*.elsevier.com") ||
shExpMatch(host, "*.springer.com") ||
shExpMatch(host, "*.els-cdn.com") ||
shExpMatch(host, "*ebsco.io") ||
shExpMatch(host, "*ebscohost.io") ||
shExpMatch(host, "*ebsco-content.com") ||
shExpMatch(host, "*ebsco.zone") ||
shExpMatch(host, "*epnet.com.com") ||
shExpMatch(host, "*ebscohost.cloud*")
) {
return "PROXY proxy-stud.sum.edu.pl:8080"
}
else {
return "DIRECT"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment