function FindProxyForURL(a,b){if(a=a.toLowerCase(),b=b.toLowerCase(),!isSupportedProtocol(GetProtocol(a)))return ALLOW;if(youku&&youku!==FindProxyForURL){var c=youku(a,b);if(c&&"direct"!==c.toLowerCase())return c}return isDenied(b,hostRegexps)||isDenied(a,urlRegexps)?DENY:ALLOW}function GetProtocol(a){if(a){var b=a.indexOf(":");if(b>=0)return a.substr(0,b)}return null}function isSupportedProtocol(a){return"http"===a||"https"===a}function isDenied(a,b){for(var c=0;c