My version was
var target = document.getElementByID("detector-events");
setInterval(function(){target.click();}, 100);
I think I like yours better though.