XHR请求拦截工具类
ეს სკრიპტი არ უნდა იყოს პირდაპირ დაინსტალირებული. ეს ბიბლიოთეკაა, სხვა სკრიპტებისთვის უნდა ჩართეთ მეტა-დირექტივაში // @require https://update.greasyfork.org/scripts/494576/1377969/XHR_INTERCEPTOR.js.
// @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();