2009年10月25日星期日

tudouva.pcal=>ieproxy.pal

  
    function FindProxyForURL(url, host){
    host=host.toLowerCase();
    if (
    dnsDomainIs(host,"youtube.com")
    ||dnsDomainIs(host,"ytimg.com")
    ||dnsDomainIs(host,"twitter.com")
    ||dnsDomainIs(host,"facebook.com")
    ||dnsDomainIs(host,"fbcddn.net")
    )
        return "PROXY 127.0.0.1:8118";
    else
        //return "DIRECT";
        FindProxyForURL2(url, host);
    }

function FindProxyForURL2(url, host) {
 if(isPlainHostName(host)
  || url.substring(0,5) != "http:" 
  || shExpMatch(url,"http://localhost:*")  
  || shExpMatch(url,"http://127.0.0.1:*")
  )
   return "DIRECT"; 
 if(shExpMatch(url, "*.flv*") 
  || shExpMatch(url, "*.mp4*") 
  || shExpMatch(url, "*.m4v*") 
  || shExpMatch(url, "*.f4v*")
  ){
  if(shExpMatch(url, "*hzplayer0.tudou.com*"))
  return "DIRECT";
  else
     return "PROXY 127.0.0.1:9415";
  }
  else return "DIRECT";
}

没有评论:

发表评论