Modify the response text of Ajax requests
An extension plugin for Chrome that modifies the response of AJAX requests.
🧰 Main features:
1. Intercept and modify the response of XMLHttpRequest and fetch requests, including 404 status requests.
2. Match requests based on regular expressions and HTTP request methods.
3. Edit response results in JSON or JavaScript format, with support for Mock.js syntax.
4. Easily create mock scenarios in JavaScript programming by accessing original request information from the arguments parameter.
5. New U-Network panel in DevTools for quickly intercepting requests and modifying response results.
6. Support change the request URL, request headers and body.
7. Support importing/exporting rule configurations.
8. Support adjusting the order of groups and rules.
9. Support picture-in-picture option for opening the configuration page.
10. Support intercepting network configuration pages using declarativeNetRequest.
⚠️ Notes:
1. After installing the plugin, restart the browser or refresh the relevant pages to ensure normal use.
2. The plugin only modifies the response at the JS level and cannot display the modified result in the Network panel. The plugin prints the modified results to the console, which can be viewed there.
🌟GitHub repository (please star if you find it helpful): https://github.com/PengChen96/ajax-tools
🧰 主要功能:
1、 支持拦截并修改XMLHttpRequest和fetch请求的响应结果,包括404状态的请求
2、支持基于正则表达式和HTTP请求方法匹配请求
3、支持以JSON或JavaScript格式编辑响应结果(支持使用Mock.js语法)
4、支持在JavaScript编程中从arguments参数获取原始请求信息,轻松创建mock场景
5、在DevTools中新增U-Network面板,快速实现请求拦截和响应结果修改
6、支持更改请求的URL、请求头和请求体
7、支持导入/导出规则配置
8、支持调整分组及规则顺序
9、支持画中画打开配置页面
10、支持使用declarativeNetRequest拦截网络配置页面
⚠️ 注意:
1、安装插件后,请重启浏览器或刷新相关页面,以确保插件正常使用。
2、该插件仅在JS层面对返回结果进行修改,无法在Network面板中查看修改后的结果。插件会将修改后的结果打印到控制台(Console)中,您可以在控制台中查看。
🌟Github(欢迎star~):https://github.com/PengChen96/ajax-tools