Skip to content

Instantly share code, notes, and snippets.

@user19
Last active August 29, 2015 14:09
Show Gist options
  • Save user19/bca4f7fa3d07b6260953 to your computer and use it in GitHub Desktop.
Save user19/bca4f7fa3d07b6260953 to your computer and use it in GitHub Desktop.
setInterval(function(){
var x = new XMLHttpRequest();
x.onload = function(){
if(x.response.getElementById("now_live") !== null)
window.location.href = x.response.getElementById("now_live").getElementsByClassName("community")[0].href;
};
x.open("GET","http://allow-any-origin.appspot.com/"+document.getElementsByClassName("commu_name")[0].href,true);
x.responseType = "document";
x.send();
},3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment