Greasy Fork is available in English.

XHR_INTERCEPTOR

XHR请求拦截工具类

Ten skrypt nie powinien być instalowany bezpośrednio. Jest to biblioteka dla innych skyptów do włączenia dyrektywą meta // @require https://update.greasyfork.org/scripts/494576/1377969/XHR_INTERCEPTOR.js

Autor
Zosah
Wersja
1.0.0
Utworzono
10-05-2024
Zaktualizowano
17-05-2024
Licencja
Brak licencji

使用

// @run-at document-start

const xhrInterceptor = new XMRInterceptor();
xhrInterceptor.addUrlInterceptor({
    domain: "baidu.com",
    url: "/search?a=1",
    cb: (response) => {
        console.log('====> ok', response);
    },
});
xhrInterceptor.execute();