title: Remove element in an iframe with jQuery
body: <p>I'd like to remove an unnecessary header from a iframe webpage.  Solutions in other SO pages on this don't seems to work.  An example:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Modifying iFrame element&lt;/title&gt;
      &lt;script type="text/javascript" src="http://code.jquery.com/jquery-1.11.2.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;p&gt;Let's remove the header toolbar (class "header")&lt;/p&gt;
  &lt;iframe id="wikipedia" src="https://en.m.wikipedia.org/wiki/Big_Ben" onload="removeHead()" style="width: 800; height: 500;"&gt;&lt;/iframe&gt;
  
  &lt;script type="text/javascript"&gt;
  
  function removeHead(){
      $(function(){
          var f=$('#wikipedia');
          f.load(function(){ 
               f.contents().find('.header').hide();
          });
      });
      console.log("script complete");
  };
  
  &lt;/script&gt;&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The script runs but nothing happens.  I've tried using remove() instead of hide(), and other combinations, with no luck.  Grateful for assistance.</p>