title: A simple login script sometimes work and sometimes doesn't
body: <p>I have the following code I execute in Chrome with Tampermonkey, which I use to login to <a href="https://digitalocean.com" rel="nofollow noreferrer">digitalocean.com</a>.</p>
  
  <pre><code>setTimeout (function() {
  document.querySelector("input[type=submit]").click();
  }, 3000);
  </code></pre>
  
  <p>For some reason, this code sometimes work and sometimes it doesn't: That is, sometimes I'm logged in and sometimes (most cases) I get DigitalOcean's <strong>404</strong> webpage.</p>
  
  <p>My login details are already saved in local storage and appear on the form.</p>
  
  <p>By principle, this problem can be reproduced by registering to DigitalOcean, installing Tampermonkey, and executing the code with it, with the match:</p>
  
  <pre><code>https://cloud.digitalocean.com/login*
  </code></pre>
  
  <p>Might something be missing to ensure human-like behavior in the eyes of the machine?</p>