XHR_INTERCEPTOR

XHR请求拦截工具类

Ezt a szkriptet nem ajánlott közvetlenül telepíteni. Ez egy könyvtár más szkriptek számára, amik tartalmazzák a // @require https://update.greasyfork.org/scripts/494576/1377969/XHR_INTERCEPTOR.js hivatkozást.

Fejlesztő
Zosah
Verzió
1.0.0
Létrehozva
2024.05.10.
Frissítve
2024.05.17.
Licensz
Ismeretlen

使用

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