XHR_INTERCEPTOR

XHR请求拦截工具类

As of 2024-05-10. See the latest version.

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyforks.org/scripts/494576/1374299/XHR_INTERCEPTOR.js

نووسەر
Zosah
وەشان
1.0.0
Created
2024-05-10
Updated
2024-05-10
Size
2.04 KB
مۆڵەت
نییە

使用


const xhrInterceptor = new XMRInterceptor();
xhrInterceptor.addUrlInterceptor({
    domain: "baidu.com",
    url: "/search?a=1",
    cb: (response) => {
        console.log('====> ok', response);
    },
});
xhrInterceptor.execute();
长期地址
遇到问题?请前往 GitHub 提 Issues。