by joshstrange · 12y ago · 0 comments
A less efficient but shorter way is:
var interval = setInterval(function(){
var links = document.querySelectorAll('#problems a');
for(var z =0; z< links.length; z++) {
$('#'+links[z].id).click();
}
}, 1000);
Also he never called him stupid he simply informed him that it didn't work.A quick fix would be setInterval(function(){ $("a") && $("a").click() }, 100)