Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- //
- // 2012 IIHF, icehockey.pac
- //
- // Helsinki: http://www.youtube.com/1stvenue
- // Stockholm: http://www.youtube.com/2ndvenue2
- //
- //
- function FindProxyForURL(url, host)
- {
- //
- // proxies to use for youtube
- // browser picks one of these by random, hit reload if you got connected to bad one
- // video will be streamed from different server depending on which proxy you use
- switch( Math.floor( Math.random() *10))
- {
- case 0: var proxy_yes = "PROXY 203.66.187.251:80;"; break; // Proxy: Taiwan Youtube: US / o-o.preferred.sea09s07.v7.lscache2.c.youtube.com
- case 1: var proxy_yes = "PROXY 218.213.90.92:8080;"; break; // Proxy: Hong Kong Youtube: HK / o-o.preferred.hkg03s05.v7.lscache2.c.youtube.com
- case 2: var proxy_yes = "PROXY 189.127.120.254:3128;"; break; // Proxy: Brazil Youtube: BR / o-o.preferred.gvt-gig1.v7.lscache2.c.youtube.com
- case 3: var proxy_yes = "PROXY 46.252.32.205:8080;"; break; // Proxy: Albania Youtube: GR / o-o.preferred.cytagreece-ath1.v7.lscache2.c.youtube.com
- case 4: var proxy_yes = "PROXY 203.66.187.249:80;"; break; // Proxy: Taiwan Youtube: US / o-o.preferred.sea09s07.v7.lscache2.c.youtube.com
- case 5: var proxy_yes = "PROXY 31.7.60.242:8080;"; break; // Proxy: Switzerland Youtube: CH / o-o.preferred.zrh04s01.v7.lscache2.c.youtube.com
- case 6: var proxy_yes = "PROXY 89.28.122.140:8081;"; break; // Proxy: Moldova Youtube: MD / o-o.preferred.starnet-kiv1.v7.lscache2.c.youtube.com
- case 7: var proxy_yes = "PROXY 211.76.97.148:80;"; break; // Proxy: Taiwan Youtube: TW / o-o.preferred.tpe05s03.v7.lscache2.c.youtube.com
- case 8: var proxy_yes = "PROXY 46.20.4.26:8080;"; break; // Proxy: Turkey Youtube: NL / o-o.preferred.ams03s15.v7.lscache2.c.youtube.com
- case 9: var proxy_yes = "PROXY 85.11.94.63:8080;"; break; // Proxy: Poland Youtube: PL / o-o.preferred.tkpsa-ktw1.v7.lscache2.c.youtube.com
- }
- //
- // test site
- if (shExpMatch(url, "http://www.proxydetect.com*")) { return proxy_yes; }
- //
- // use proxy for specific youtube users and all videos
- // actual video stream will bypass proxy
- if (shExpMatch(url, "http://www.youtube.com/watch*")) { return proxy_yes; }
- if (shExpMatch(url, "http://www.youtube.com/icehockey*")) { return proxy_yes; }
- if (shExpMatch(url, "http://www.youtube.com/1stvenue*")) { return proxy_yes; }
- if (shExpMatch(url, "http://www.youtube.com/2ndvenue2*")) { return proxy_yes; }
- if (shExpMatch(url, "http://www.youtube.com/user/icehockey*")) { return proxy_yes; }
- if (shExpMatch(url, "http://www.youtube.com/user/1stvenue*")) { return proxy_yes; }
- if (shExpMatch(url, "http://www.youtube.com/user/2ndvenue2*")) { return proxy_yes; }
- //
- // no proxy for other urls
- return "DIRECT;";
- //
- }
- //
- // If proxies listed in "var proxy_yes" line stop working you can find alternatives here:
- // http://www.xroxy.com/proxylist.php?port=&type=All_http&ssl=&country=&latency=1000&reliability=9000#table
- //
- // Youtube hockey streams are more or less geoblocked in following countries:
- // Belarus
- // Denmark
- // Canada
- // Czech Republic
- // Estonia
- // Finland
- // Germany
- // Hungary
- // Kazakhstan
- // Latvia
- // Lithuania
- // Norway
- // Romania
- // Russia
- // Slovakia
- // Sweden
- // Ukraine
- // USA
- //
- //
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement