title: Is it possible to hide a javascript confirm dialog?
body: <p>I’m developing a Greasmonkey Script and I need to hide/suppress a confirm box. Here’s the code:</p>
  
  <pre><code>setInterval(function () {
  
          bla bla bla
  
          var Element = document.getElementById("id");
          Element.click();
  
          bla bla bla
  
      }, 2000); //Perform Actions x2000MS = 2.0Secs
  
  }
  </code></pre>
  
  <p>When the script clicks on the element, the browser shows a confirm box that stops the script. How can I remove it?</p>
  
  <p>I’ve tried with <code>window.confirm = function () {};</code> without success. What can I do?</p>