function FindProxyForURL( url, host ) { // Default to using no proxy. var ProxyConfig = "PROXY 192.168.1.55:8080"; if( dnsDomainIs( host, "web.whatsapp.com" ) ) { // Requested domain matches, let's use the proxy. ProxyConfig = "PROXY 192.168.1.55:8080"; } else if ((dnsDomainIs(host, "*.ir") || dnsDomainIs(host, "farsicomcrm.ir"))) { ProxyConfig = "DIRECT"; } // else if ((dnsDomainIs(host, "pornhub.com") || dnsDomainIs(host, "www.pornhub.com"))) { // ProxyConfig = "PROXY 192.168.1.55:8080"; // } // else if (myIpAddress() == "66.254.114.41") { // ProxyConfig = "PROXY 192.168.1.55:8080"; // } return ProxyConfig; //return "PROXY 192.168.1.55:8080"; }