Advertisement
Guest User

Custom proxy.pac to watch 2012 IIHF hockey games for free

a guest
May 5th, 2012
14,829
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // 2012 IIHF, icehockey.pac
  4. //
  5. // Helsinki:  http://www.youtube.com/1stvenue
  6. // Stockholm: http://www.youtube.com/2ndvenue2
  7. //
  8. //
  9. function FindProxyForURL(url, host)
  10. {
  11. //
  12. // proxies to use for youtube
  13. // browser picks one of these by random, hit reload if you got connected to bad one
  14. // video will be streamed from different server depending on which proxy you use
  15. switch( Math.floor( Math.random() *10))
  16. {
  17. 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
  18. 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
  19. 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
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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
  26. 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
  27. }
  28. //
  29. // test site
  30. if (shExpMatch(url, "http://www.proxydetect.com*")) { return proxy_yes; }
  31. //
  32. // use proxy for specific youtube users and all videos
  33. // actual video stream will bypass proxy
  34. if (shExpMatch(url, "http://www.youtube.com/watch*")) { return proxy_yes; }
  35. if (shExpMatch(url, "http://www.youtube.com/icehockey*")) { return proxy_yes; }
  36. if (shExpMatch(url, "http://www.youtube.com/1stvenue*")) { return proxy_yes; }
  37. if (shExpMatch(url, "http://www.youtube.com/2ndvenue2*")) { return proxy_yes; }
  38. if (shExpMatch(url, "http://www.youtube.com/user/icehockey*")) { return proxy_yes; }
  39. if (shExpMatch(url, "http://www.youtube.com/user/1stvenue*")) { return proxy_yes; }
  40. if (shExpMatch(url, "http://www.youtube.com/user/2ndvenue2*")) { return proxy_yes; }
  41. //
  42. // no proxy for other urls
  43. return "DIRECT;";
  44. //
  45. }
  46. //
  47. // If proxies listed in "var proxy_yes" line stop working you can find alternatives here:
  48. // http://www.xroxy.com/proxylist.php?port=&type=All_http&ssl=&country=&latency=1000&reliability=9000#table
  49. //
  50. // Youtube hockey streams are more or less geoblocked in following countries:
  51. // Belarus
  52. // Denmark
  53. // Canada
  54. // Czech Republic
  55. // Estonia
  56. // Finland
  57. // Germany
  58. // Hungary
  59. // Kazakhstan
  60. // Latvia
  61. // Lithuania
  62. // Norway
  63. // Romania
  64. // Russia
  65. // Slovakia
  66. // Sweden
  67. // Ukraine
  68. // USA
  69. //
  70. //
  71. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement