ajax-hook
用于hook网页请求
Today's Installations
0
Total Installations
313
Creation Date
2023-08-17T08:00:10+00:00
Update Date
2023-08-17T08:17:43+00:00
User Rating
No Rating
// @require https://scriptcat.org/lib/1233/1.0.1/ajax-hook.js
v1.0.1@require库

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
empty image
No one has rated the script yet. Be the first to rate it!