title: How to Replace innerHTML of all divs via getElementById
body: <p>I am trying to add custom html code to adblock users in div called "cfmonitor".
  Currently I am using Below Mentioned Script.</p>
  
  <pre><code>&lt;script&gt; 
    window.onload = function(){   
      setTimeout(function() { 
          var ad = document.querySelector("ins.adsbygoogle");
             if (ad &amp;&amp; ad.innerHTML.replace(/s/g, "").length == 0) {
               ad.style.cssText = 'display:block !important'; 
                  document.getElementById("cfmonitor").innerHTML = 'html code goes here';
        }
      }, 500);
    }; 
  &lt;/script&gt;
  </code></pre>
  
  <p>The Issue - This Code just replace only first cfmonitor div with my custom html code. I have multiple divs of "cfmonitor". How can i replace all "cfmonitor" divs with my custom html code?
  Tried to experiment a lot but failed, anyone can help me out?</p>