4 ms·
Seriously? window.setInterval(function(){ Array.prototype.forEach.call(document.querySelectorAll('a'),function(i) {i.dispatchEvent(event)})},1000);
by sashasklar 12y ago
Seriously?
window.setInterval(function(){ Array.prototype.forEach.call(document.querySelectorAll('a'),function(i) {i.dispatchEvent(event)})},1000);
- jffry 12y agoI was going for quick and dirty. $(foo).click() was available so why not use it?
- hmgibson23 12y agoIt was a joke...
- sashasklar 12y agoKinda. I use jQuery when it makes sense, and when I'm working on someone else's dime and time. Use vanilla JS for stuff like this, because why lose an opportunity to learn?
- deleted 12y ago[deleted]
- hmgibson23 12y agoSeriously it was a joke