function FindProxyForURL(url, host) { var sitesToProxy = new Array( ".livejournal.com", // Blocked in China ".whatismyip.com", // Not blocked, but entered here for convenience ".bbcchinese.com", // (Ususally) Blocked in China ".bbc.co.uk", // English articles usually not blocked, sensitive articles // sometimes are, Chinese articles are usually blocked but // some are occasionally accessible ".sourceforge.net", // Blocked recently, may have been unblocked... not sure ".facebook.com", // Not blocked, but really slow from China... perhaps on purpose? ".feedburner.com", "zh.wikipedia.org", // Usually blocked "blog.com", "xtube.com", // Not always blocked, but sometimes quicker via the tunnel! "stilgherrian.com" // Added temporarily while posting this comment (I'm paranoid!) ); var returnVal = "DIRECT"; var x; for ( x in sitesToProxy ) { if ( dnsDomainIs(host, sitesToProxy[x]) ) { returnVal = "SOCKS 127.0.0.1:1080; DIRECT"; } } return returnVal; }