配合ssh翻墙使用的pac脚本

来源:http://daminger.net/dm.pac

function FindProxyForURL(url, host)
{
   if ( dnsDomainIs(host, ".blogspot.com") || dnsDomainIs(host, ".youtube.com")|| dnsDomainIs(host, ".wikipedia.org")|| dnsDomainIs(host, ".google.com") || dnsDomainIs(host, ".google.cn") || dnsDomainIs(host, ".blogger.com") || dnsDomainIs(host, ".googlegroups.com") || dnsDomainIs(host, ".googlevideo.com")|| dnsDomainIs(host, ".gmail.com") || dnsDomainIs(host, ".appspot.com")){
        return "socks5 localhost:7070";
    }    
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"; }
    return DIRECT;
}

没有评论: