XHR_INTERCEPTOR

XHR请求拦截工具类

Este script no debería instalarse directamente. Es una biblioteca que utilizan otros scripts mediante la meta-directiva de inclusión // @require https://update.greasyfork.org/scripts/494576/1377969/XHR_INTERCEPTOR.js

Autor
Zosah
Versión
1.0.0
Creado
10/5/2024
Actualizado
17/5/2024
Licencia
Desconocida

使用

// @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();