var cursed_script = document.createElement("script");
cursed_script.innerHTML = `var XHR = XMLHttpRequest;
XMLHttpRequest = function() {
var xhr = new XHR(...arguments);
console.log("xhr");
var proxy = new Proxy(xhr, {
get(target, prop) {
if (typeof xhr[prop] == "function")
return xhr[prop].bind(xhr);
// console.log("get", prop, xhr[prop]);
return xhr[prop];
},
set(target, prop, value) {
// console.log("set", prop, value);