Skip to content

Instantly share code, notes, and snippets.

@aidilfbk
Created July 27, 2013 09:34
Show Gist options
  • Save aidilfbk/6094390 to your computer and use it in GitHub Desktop.
Save aidilfbk/6094390 to your computer and use it in GitHub Desktop.
Proxy autoconfiguration file to allow Singtel users to send asks on Tumblr
function FindProxyForURL(url, host){
var singtel_proxy = "PROXY proxy.singnet.com.sg:8080; DIRECT";
if(dnsDomainIs(host, "tumblr.com")){
if(shExpMatch(url, '*ask_form*') || shExpMatch(url, '*submit_form*')) {
return singtel_proxy;
}
}
return "DIRECT";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment