title: ajaxComplete in pure JavaScript
body: <p>I am building a chrome extension using Content Script.</p>
  
  <p>I have a piece of code that injects DOM elements upon success of all ajax request on the page using jQuery. How can you recreate this without jQuery?
  Please note that I cannot modify any ajax requests on the page.</p>
  
  <pre><code>if(window.jQuery){
  jQuery( document ).ajaxComplete(function( event, xhr, settings ) {
      for(var i =0; i&lt; $jq('div.handwave').length; i++){
          if($($('div.handwave')[i]).children('.done').length &lt; 1){
              $(document).find('div.handwave').eq(i).append(wind);
          }
      }
  });
  }
  </code></pre>
  
  <p>Is this possible?</p>