title: Add ID to Button in Javascript
body: <p>I'm currently trying to find a way to add an ID to an html button using a javascript injection. The html is simple and looks like this:</p>
  
  <pre><code>&lt;button type="submit" class="submit btn primary-btn" tabindex="4"&gt;Sign in&lt;/button&gt;
  </code></pre>
  
  <p>Now, as you can see, it doesn't have an ID or a name, making it a bit difficult to find using spynner in Python. What javascript could I inject to add an ID to this script? Would having javascript search for that entire string and then replace the entire string with an ID added ot it? Or is there a better way of going about it?</p>