This can slow down other things, but what if you try to defuse these calls as follows:
window.setInterval = function() { console.log("setInterval", arguments); }; window.setTimeout = function() { console.log("setTimeout", arguments); };
If you find that some timeouts / intervals are really necessary to reproduce your problem, you can try skipping them. What could be the code:
window.oldSetTimeout = window.setTimeout; window.setTimeout = function() { if (arguments[0] == "code you want to allow") { oldSetTimeout.apply(null, arguments); } else { console.log("setTimeout", arguments); } };
Note. I would not be surprised that he decapitates setTimeout, the cross browser does not work, but it works on FF 18.0
source share