ajax-hook
ajax-hook,油猴可使用版
使用方法
参考Ajax-hook
demo
ah.proxy({
//请求
onRequest: (config, handler) => {
handler.next(config);
},
//失败
onError: (err, handler) => {
handler.next(err);
},
//请求成功后
onResponse: (response, handler) => {
console.log(response.response);
handler.next(response);
}
});
Script Score
No one has rated the script yet. Be the first to rate it!