-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscholar.pac
19 lines (19 loc) · 970 Bytes
/
scholar.pac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function FindProxyForURL(url, host)
{
// variable strings to return
var proxy_yes = "SOCKS5 127.0.0.1:1080";
var proxy_no = "DIRECT";
if (shExpMatch(url, "http://ieeexplore.ieee.org*")) { return proxy_yes; }
if (shExpMatch(url, "http://dl.acm.org*")) { return proxy_yes; }
if (shExpMatch(url, "http://*.springer.com*")) { return proxy_yes; }
if (shExpMatch(url, "http://*.computersinbiologyandmedicine.com*")) { return proxy_yes; }
if (shExpMatch(url, "http://*.sciencedirect.com*")) { return proxy_yes; }
if (shExpMatch(url, "http://*.safaribooksonline.com*")) { return proxy_yes; }
if (shExpMatch(url, "http://*.wiley.com*")) { return proxy_yes; }
if (shExpMatch(url, "http://*.computer.org*")) { return proxy_yes; }
if (shExpMatch(url, "http://*.webofknowledge.com*")) { return proxy_yes; }
if (shExpMatch(url, "http://*.sagepub.com*")) { return proxy_yes; }
if (shExpMatch(url, "http://*.jstor.org*")) { return proxy_yes; }
// Proxy anything else
return proxy_no;
}