Skip to content

Instantly share code, notes, and snippets.

@ludicast
Created November 14, 2012 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ludicast/4074973 to your computer and use it in GitHub Desktop.
Save ludicast/4074973 to your computer and use it in GitHub Desktop.
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.js";
document.getElementsByTagName('head')[0].appendChild(jq);
function closepp () {
if (jQuery("a.SelLnkGreen").length > 0) {
alert("gotta live one");
}
closePopup();
console.log("outie");
}
function runTimes () {
setInterval(function() {
jQuery(".WNMar1 a.BtnRed").click();
setTimeout(closepp, 30000);
console.log("innie");
}, 60000);
}
runTimes();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment