I am trying to run some JS code in a bookmarklet in firefox. Here's some basic code to prove the point:
window.setTimeout( function() {alert('i ran');}, 1000 );
when I run code with setTimeout in it, I get the whole page replaced by the counter value that normally gets logged in the console.
Is there a way to catch this output and stop this happening?
Thanks!