Xhr

const open_ = XMLHttpRequest.prototype.open;
XMLHttpRequest.prototype.open = function() {
console.log("Вызов open перехвачен:", arguments);
arguments[1] = 'https://httpbin.org/headers'
console.log("Вызов open перехвачен:", arguments);
open_.apply(this, arguments);
}
XMLHttpRequest.prototype.open.toString = function(){
return 'function open() { [native code] }'
}
let xhr = new XMLHttpRequest();
xhr.open('GET','https://httpbin.org/user-agent',false);
xhr.send();
JSON.parse(xhr.response)
Ftech примерно аналогично
const { fetch: originalFetch } = window; window.fetch = function fetch(...args) { console.log("Вызов fetch перехвачен:", ...args); return originalFetch(...args); };
Скорее всего тебе нужно просто после загрузки выполни через блок "яваскрипт"
Если у тебя сразу летит запрос до нажатия кнопки или иного действия, ставь через "при загрузке страницы"