Skip to content

Instantly share code, notes, and snippets.

@detj
Created November 22, 2012 13:30
Show Gist options
  • Save detj/4131185 to your computer and use it in GitHub Desktop.
Save detj/4131185 to your computer and use it in GitHub Desktop.
Trap external XHRs
function() {
var proxied = window.XMLHttpRequest.prototype.open;
window.XMLHttpRequest.prototype.open = function() {
console.log( arguments );
return proxied.apply(this, [].slice.call(arguments));
};
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment