Modify the response text of Ajax requests
Ajax Interceptor Tools is a Chrome extension plugin that allows users to modify the response of AJAX requests. This powerful tool is designed to intercept and modify the response of XMLHttpRequest and fetch requests, including those with a 404 status. With Ajax Interceptor Tools, users can easily match requests based on regular expressions and HTTP request methods.
One of the standout features of Ajax Interceptor Tools is the ability to edit response results in JSON or JavaScript format, with support for Mock.js syntax. This allows users to create mock scenarios in JavaScript programming by accessing the original request information from the arguments parameter. The plugin also introduces a new U-Network panel in DevTools, providing a convenient way to intercept requests and modify response results.
Ajax Interceptor Tools offers comprehensive customization options, including the ability to change the request URL, request headers, and body. Users can import and export rule configurations, as well as adjust the order of groups and rules. Additionally, the plugin supports a picture-in-picture option for opening the configuration page and can intercept network configuration pages using declarativeNetRequest.
Please note that after installing the plugin, it is recommended to restart the browser or refresh relevant pages to ensure normal use. While the plugin modifies the response at the JavaScript level, it does not display the modified result in the Network panel. Instead, the modified results are printed to the console for easy viewing.
If you find Ajax Interceptor Tools helpful, you can access the GitHub repository and star it to show your support.