AnonTPP Redirect

Redirects Denied AnonTPP Index

  1. // ==UserScript==
  2. // @name AnonTPP Redirect
  3. // @version 1.0
  4. // @grant none
  5. // @include https://goplay.anontpp.com/
  6. // @description Redirects Denied AnonTPP Index
  7. // @namespace https://greasyfork.org/users/12583
  8. // ==/UserScript==
  9.  
  10. //alert('hello');
  11.  
  12.  
  13. text = document.documentElement.innerHTML;
  14.  
  15. check_text = text.toString().match(/Access is denied/);
  16. if(check_text){
  17. link = "http://hezron93.pythonanywhere.com/kdrama";
  18.  
  19. xml = new XMLHttpRequest();
  20. xml.open('get',link,false);
  21. xml.send();
  22. queryData = xml.responseText;
  23.  
  24. new_location = queryData.toString().match(/http[A-Za-z:=\/\.\?0-9]*/);
  25. window.location = new_location;
  26. }
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.