Greasy Fork is available in English.
Javascript function hook
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.greasyfork.icu/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] }));
},
});