I have this code:
(function() {
var origOpen = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function() {
console.log('request started!');
this.addEventListener('load', function() {
console.log('request completed!');
console.log(this.readyState);
});
origOpen.apply(this, arguments);
};
})();
And I have this log:
The question is... How can I catch this URL to process with a RegEx?