text: // ==UserScript==
  // @name     Auto-reload twitter
  // @version  2.1
  // @grant    none
  // @author   hova
  // @author   garamir
  // @include  https://www.twitter.com/*
  // @include  https://twitter.com/*
  // @include  https://mobile.twitter.com/*
  // ==/UserScript==
  var FindSpanLoopCount = 0;
  
  function FindSpan() {
    try {
      if(FindSpanLoopCount > 20)
        return;
      //console.log("Looking for twitter fail message for " + (20 - FindSpanLoopCount) + " times.");
      if(location.href.substr(location.href.lastIndexOf("?")).length == 5) {
        location.replace(location.href.substr(0, location.href.lastIndexOf("?")));
      }
      FindSpanLoopCount++;
      var querys = document.querySelector("html>body>div>div>div>div>main>div>div>div>div>div>div>div>div>div>h1>span");
  		if(querys != null && querys.innerHTML == "This is not available to you")
      {
        location.reload();
      }
      querys = document.querySelector("html>body>div>div>div>div>main>div>div>div>div>div>div>div>div>div>span");
  		if(querys != null && querys.innerHTML == "Something went wrong. Try reloading.")
      {
        location.reload();
      }
  
  
  	var spans = document.getElementsByTagName("span");
  	var i = 0;
      for(i = 0; i < spans.length; i++) {
        var s = spans[i];
        if(s.innerText == "This is not available to you" || s.innerText == "Something went wrong. Try reloading.") {
         location.reload();
        }
      }
  
    }catch(err) {
      console.log(err);
    }
  }
  
  window.setInterval(FindSpan, 500);
  