I need to stop all the javascript running on the page, but I have a limitation:
I cannot control the tags content, I am editing the page after it's being loaded.
Also, I need to remove all the variables defined by the old script that was running and stop all the intervals.
The solution I thought to stop intervals:
for(var i=0,s=setInterval(function(){},1e10);i<=s;++i)
clearInterval(i);
for(var i=0,s=setTimeout(function(){},1e10);i<=s;++i)
clearTimeout(i);