title: Greasemonkey script won't run on the Warning: Potential Security Risk Ahead page in FireFox
body: <p>I've written a little bit of JS code to click on the Accept the Risk and Continue button in FF however, Greasemonkey won't run it. The code works fine in the console. I'd appreciate any help in this regard.</p>
  <pre><code>if (window.location.href.substring(0,16) == &quot;https://10.10.10&quot;) {
  var myElement = document.getElementById('exceptionDialogButton');
   if(myElement){
       document.getElementById('exceptionDialogButton').click();
       }
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/l4nOY.png" rel="nofollow noreferrer">Here's an image of the page in question.</a></p>