title: tampermonkey: trying to click button
body: <p>Button I am trying to click:</p>
  
  <p>--
  </p>
  
  <pre><code>&lt;button data-adblock-el="continueWithAdblockerButton" aria-label="Continue with ad blocker" 
  class="outline-focus"&gt;
      &lt;svg aria-labelledby="title-9b2bd6fd-8b00-4d7e-8535-cfc1811b1b07" class="stroke-current" 
      width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" 
      role="img"&gt;
           &lt;title id="title-9b2bd6fd-8b00-4d7e-8535-cfc1811b1b07"&gt;Icon: schließen&lt;/title&gt;
           &lt;g id="l-close-9b2bd6fd-8b00-4d7e-8535-cfc1811b1b07"&gt;
               &lt;path id="vector-9b2bd6fd-8b00-4d7e-8535-cfc1811b1b07" d="M18 18L6 6m12 0L6 18" stroke- 
               width="1.3" stroke-linecap="round"&gt;&lt;/path&gt;
           &lt;/g&gt;
       &lt;/svg&gt;
   &lt;/button&gt;
  </code></pre>
  
  <p></p>
  
  <p>In concole this works:</p>
  
  <pre><code>document.querySelector('button[data-adblock-el^="continueWithAdblockerButton"]').click();
  </code></pre>
  
  <p>But anything I do in tampermonkey seems to have no effect. My Script:</p>
  
  <pre><code>// ==UserScript==
  // @name         some script
  // @namespace    http://tampermonkey.net/
  // @version      0.1
  // @description  try to take over the world!
  // @author       jhm
  // @match        https://www.spiegel.de/*
  // @require      http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
  // @require      https://gist.github.com/raw/2625891/waitForKeyElements.js
  // @grant        none
  // ==/UserScript==
  
  (function() {
      'use strict';
      waitForKeyElements ('button[data-adblock-el^="continueWithAdblockerButton"]', clickNode);
  
      document.querySelector('button[data-adblock-el^="continueWithAdblockerButton"]').click();
  
      $(document).ready(function() {
      document.querySelector('button[data-adblock-el^="continueWithAdblockerButton"]').click();
      }
  
      function clickNode (jNode) {
          jNode.click ();
      }
  
  
      // Your code here...
  })();
  </code></pre>