title: How to exclude iframe in Greasemonkey or Tampermonkey?
body: <p>I have created a Greasemonkey script for a website. What the script does is adding a div at the end of the page.<br/></p>
  
  <pre><code>document.body.insertBefore(myDiv, document.body.firstChild);
  </code></pre>
  
  <p>But now the site adds an iframe for google-ads, as a result my div appears in the iframe too, which is not what I want.</p>
  
  <p>How can I stop the script affecting iframes?</p>