Skip to content

Instantly share code, notes, and snippets.

@Steffan153
Last active June 25, 2022 21:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Steffan153/7081db837868b6d9459e954a87430d36 to your computer and use it in GitHub Desktop.
Save Steffan153/7081db837868b6d9459e954a87430d36 to your computer and use it in GitHub Desktop.
const prev = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function(method, url, ...args) {
if (url === `insert correct url here`) {
setTimeout(() => {
prev.apply(this, method, url, ...args);
}, 5000);
} else {
prev.apply(this, method, url, ...args);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment