title: Extension not clicking properly, console w/ same commands working fine?
body: <p>My extension doesn't seem to be clicking things correctly when moving one thread to another place, however when I use the same code inside the console on the same page, it works perfectly fine. I have seen in other posts that say you have to have document.ready before it, and that you should be having a timeout(function() {}), and I tried doing that however it still doesn't work.</p>
  
  <p>Here is the code for what I'm trying to do:</p>
  
  <pre><code>if(wasAccepted() == true) {
          $("document").ready(function() {
              $(document.getElementsByClassName('menuTrigger menuTrigger--prefix')).click()
              setTimeout(function() {
                  $(document.getElementsByClassName('menuPrefix label label--lightGreen')[0]).trigger('click').delay(20);
              },30);
          });
  </code></pre>
  
  <p>and here is a short gif of what it does do:
  <a href="https://i.imgur.com/LopYGUl.gifv" rel="nofollow noreferrer">https://i.imgur.com/LopYGUl.gifv</a></p>
  
  <p>here is me inserting the same code into the console, and it doing what's expected:
  <a href="https://i.imgur.com/2HXyCPw.gifv" rel="nofollow noreferrer">https://i.imgur.com/2HXyCPw.gifv</a></p>