Skip to content

Instantly share code, notes, and snippets.

@fabiocerqueira
Created September 19, 2012 00:59
Show Gist options
  • Save fabiocerqueira/3747015 to your computer and use it in GitHub Desktop.
Save fabiocerqueira/3747015 to your computer and use it in GitHub Desktop.
Proxy UECE
function FindProxyForURL(url, host)
{
// domains to use the proxy with
var domains = ['computer.org','acm.org', 'ieee.org', 'elsevier.com', 'sciencedirect.com', 'sistema.uecevest.uece.br'];
// proxy settings
var proxyhost = 'proxy.uece.br';
var proxyport = '4050';
host = host.toLowerCase();
for (var i in domains)
{
if (dnsDomainIs(host, domains[i]))
{
return "PROXY " + proxyhost + ":" + proxyport;
}
}
return "DIRECT";
}
@qrwteyrutiyoup
Copy link

desenterrou :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment