XHR_INTERCEPTOR

XHR请求拦截工具类

ของเมื่อวันที่ 10-05-2024 ดู เวอร์ชันล่าสุด

สคริปต์นี้ไม่ควรถูกติดตั้งโดยตรง มันเป็นคลังสำหรับสคริปต์อื่น ๆ เพื่อบรรจุด้วยคำสั่งเมทา // @require https://update.greasyforks.org/scripts/494576/1374299/XHR_INTERCEPTOR.js

ผู้เขียน
Zosah
เวอร์ชัน
1.0.0
สร้างเมื่อ
10-05-2024
อัปเดตเมื่อ
10-05-2024
Size
2.04 กิโลไบต์
สัญญาอนุญาต
ไม่มี

使用


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