title: Javascript: Overriding XMLHttpRequest.open()
body: <p>How would I be able to override the <code>XMLHttpRequest.open()</code> method and then catch and alter it's arguments?</p>
  
  <p>I've already tried the proxy method but it didn't work, although removing the open over-rid when <code>XMLHttpRequest()</code> was called: </p>
  
  <pre><code>(function() {
      var proxied = window.XMLHttpRequest.open;
      window.XMLHttpRequest.open = function() {
          $('.log').html(arguments[0]);
          return proxied.apply(this, arguments);
      };
  })();
  </code></pre>