Modify the response text of Ajax requests

Latest Version

Version
0.0.11
Update
August 18, 2024
Size
2.31MiB
Developer
Category
Users
3,000+
Rating
4.66667 ★
Manifest Version
3
Web Store Status
Languages Support
中文 (简体)
See more
Permissions
Storage
UnlimitedStorage
DeclarativeNetRequest
DeclarativeNetRequestFeedback
DeclarativeNetRequestWithHostAccess
See more

Ajax Interceptor Tools Extension

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
Read more

Source Manifest.json

{"update_url": "https://clients2.google.com/service/update2/crx", "name": "Ajax Interceptor Tools", "version": "0.0.11", "description": "Modify the response text of Ajax requests", "manifest_version": 3, "declarative_net_request": { "rule_resources": [] }, "permissions": [ "storage", "unlimitedStorage", "declarativeNetRequest", "declarativeNetRequestFeedback", "declarativeNetRequestWithHostAccess" ], "host_permissions": [ "http://*/*", "https://*/*" ], "action": { "default_icon": { "16": "./icons/tools16.png", "24": "./icons/tools24.png", "32": "./icons/tools32.png" } }, "icons": { "48": "./icons/tools128.png", "128": "./icons/tools128.png" }, "background": { "service_worker": "service_worker.js" }, "content_scripts": [ { "matches": [ "" ], "js": [ "./content.js" ], "run_at": "document_start", "all_frames": true } ], "devtools_page": "devtoolsPage/index.html", "web_accessible_resources": [ { "resources": [ "html/iframePage/dist/index.html", "html/iframePage/dist/declarativeNetRequest.html", "pageScripts/index.js", "html/iframePage/mock.js", "icons/iconfont/iconfont.css", "icons/iconfont/iconfont.woff2", "icons/iconfont/iconfont.woff", "icons/iconfont/iconfont.ttf" ], "matches": [ "" ] } ]}
Read more

Similar Extensions

icon

Ajax Modifier Extension · Developer Tools 3,000+ 48 ★ 2.08MiB

icon

PostWoman Http Test Extension · Developer Tools 3,000+ 46 ★ 834KiB

icon

Inssman: Open-Source: Modify HTTP Request Extension · Developer Tools 3,000+ 10 ★ 3.51MiB

icon

Request Interceptor Extension · Developer Tools 3,000+ 58 ★ 1.89MiB

icon

XSwitch Extension · Developer Tools 3,000+ 18 ★ 1.6MiB

icon

Request Interceptor Extension · Developer Tools 3,000+ 12 ★ 23.97KiB

icon

Easy-Interceptor Extension · Developer Tools 3,000+ 2 ★ 454KiB

icon

Colibri: modify Ajax response Extension · Developer Tools 3,000+ 2 ★ 220KiB

icon

GoRes Extension · Developer Tools 3,000+ 8 ★ 225KiB

icon

Ajax Proxy Extension · Developer Tools 3,000+ 8 ★ 835KiB

icon

Requestly - Intercept, Modify & Mock HTTP Requests Extension · Developer Tools 3,000+ 1227 ★ 876KiB

icon

Mock:Intercept and directly return data Extension · Developer Tools 3,000+ 6 ★ 487KiB

icon

FeHelper(前端助手) Extension · Developer Tools 3,000+ 321 ★ 2.72MiB

icon

tweak: mock and modify HTTP requests Extension · Developer Tools 3,000+ 190 ★ 3.22MiB

icon

稀土掘金 Extension · Productivity 3,000+ 339 ★ 4.66MiB

icon

Console Importer Extension · Developer Tools 3,000+ 20 ★ 9.55KiB

icon

Octotree - GitHub code tree Extension · Developer Tools 3,000+ 1139 ★ 3.54MiB

icon

ModResponse - Mock and replay API Extension · Developer Tools 3,000+ 23 ★ 454KiB

icon

Apifox Browser Extension Extension · Developer Tools 3,000+ 9 ★ 28.39KiB

icon

JSON-handle Extension · Developer Tools 3,000+ 450 ★ 193KiB

icon

Axure RP Extension for Chrome Extension · Developer Tools 3,000+ 758 ★ 14.44KiB

icon

Sourcegraph Extension · Developer Tools 3,000+ 169 ★ 8.22MiB

icon

MockMan - mock APIs Extension · Productivity 3,000+ 17 ★ 2.3MiB

icon

Netify Extension · Developer Tools 3,000+ 40 ★ 1.24MiB

User reviews

icon

Rock Guo (ID: 0000004757d4e865) Voted 5 ★ - Updated 10/05/2023 很优秀,尤其是支持JS处理response功能 ~

icon

Sage Panda (ID: 00000081b03fec5a) Voted 3 ★ - Updated 08/29/2023 after update its not working date 8/29/2023

icon

hongyan huang (ID: 0000005721c1081b) Voted 5 ★ - Updated 04/01/2023 很好用~赞

icon

LIN S (ID: 00000093618a081a) Voted 5 ★ - Updated 09/20/2022 很优秀