Skip to content

Instantly share code, notes, and snippets.

@AirStair
Last active March 25, 2020 10:23
Show Gist options
  • Save AirStair/1e7139e7027d49d6b90d526eabe7b4ab to your computer and use it in GitHub Desktop.
Save AirStair/1e7139e7027d49d6b90d526eabe7b4ab to your computer and use it in GitHub Desktop.
var send = XMLHttpRequest.prototype.send;
var params;
var sendNew;
XMLHttpRequest.prototype.send = function(data) {
params = new URLSearchParams(data);
if (new URLSearchParams(data).get('D') === '75') {
sendNew = function () {
params.set('PRICE', '9999');
send.call(this, params);
}.bind(this);
} else {
send.call(this, data);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment