Greasy Fork is available in English.

Youtube auto Proxfree

this script automatically redirects youtube to a proxy.

  1. // ==UserScript==
  2. // @name Youtube auto Proxfree
  3. // @description this script automatically redirects youtube to a proxy.
  4. //
  5. // @include http://www.youtube.com/watch?*
  6. // @include https://www.youtube.com/watch?*
  7. // @include http://*.youtube.com/watch?*
  8. // @include https://*.youtube.com/watch?*
  9. // @version 0.0.1.20140607005814
  10. // @namespace https://greasyfork.org/users/2561
  11. // ==/UserScript==
  12. GM_xmlhttpRequest({
  13. method: 'POST',
  14. url: 'http://eu.proxfree.com/request.php?do=go',
  15. data: 'get=' + encodeURIComponent(window.location.href),
  16. headers: {
  17. 'User-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0',
  18. 'Accept': 'application/xml,text/xml',
  19. "Content-Type": "application/x-www-form-urlencoded"
  20. },
  21. onload: function(responseDetails) {
  22. var res = responseDetails.responseText;
  23. var premalinks = res.match(/(http:\/\/eu\.proxfree\.com\/permalink\.php\?.*\);)/im);
  24. window.location = premalinks[0];
  25. }
  26. });