Hook.js

Javascript function hook

Tính đến 09-04-2022. Xem phiên bản mới nhất.

Script này sẽ không được không được cài đặt trực tiếp. Nó là một thư viện cho các script khác để bao gồm các chỉ thị meta // @require https://update.greatest.deepsurf.us/scripts/443030/1037826/Hookjs.js

Tác giả
invobzvr
Phiên bản
0.1
Đã tạo
09-04-2022
Đã cập nhật
09-04-2022
Kích thước
1 KB
Giấy phép
GPL-3.0

Hook.js

Description

Javascript function hook

Example

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] }));
    },
});