4 ms·
I encountered the same thing and pasted in the following in the console to disable all timers(1): // Set a fake timeout to get the highest timeout id var h
by natejenkins 12y ago
I encountered the same thing and pasted in the following in the console to disable all timers(1):
// Set a fake timeout to get the highest timeout id
var highestTimeoutId = setTimeout(";");
for (var i = 0 ; i < highestTimeoutId ; i++) {
clearTimeout(i);
}
(1) Taken from: http://stackoverflow.com/questions/3847121/how-can-i-disable-all-settimeout-events http://stackoverflow.com/questions/3847121/how-can-i-disable...
- aidos 12y agoHa! I'd never looked at at the value returned from setTimeout to see what it was. Obviously it was going to be some sort of ID but it never occurred to me that it was a simple counter. Neat trick. I just hit ESC a bunch of times as the page was loading and it seemed to stop the offending code from getting a chance to execute.