Javascript function hook
Този скрипт не може да бъде инсталиран директно. Това е библиотека за други скриптове и може да бъде използвана с мета-директива // @require https://update.greatest.deepsurf.us/scripts/443030/1037826/Hookjs.js
Javascript function hook
fetch.hook(function () {
if (arguments[0].endsWith('/log')) {
return new Response('{"error":0,"data":"ok"}');
}
});
History.prototype.pushState.hook({
scope: History.prototype,
before: function () {
dispatchEvent(new CustomEvent('pushstate', { detail: arguments[2] }));
},
});