HookAjax

HookAjax XHR Fetch

什么是HookAjax?

HookAjax是由Kenny Huang开发的Chrome扩展程序,该扩展的主要功能是“HookAjax XHR Fetch”。

扩展截图

screenshot

下载HookAjax扩展crx文件

下载HookAjax扩展crx格式的文件,手动将Chrome插件安装到浏览器中,也可以将crx文件分享给朋友,轻松安装Chrome插件。

扩展使用说明

                        To modify response text of Fetch or XHR requests
1. You may have to restart chrome after you added this extension.
2. It is recommended that you turn off this extension(the icon should be gray) when you are not using it.
3. This extension only overrides the response data in the XMLHTTPRequest object as well as the fetch method. The "real" response which you can see in DevTools' "Network" panel will not be changed.
 

你可以用该插件修改页面上Fetch or XHR请求的返回结果。
注意:
1. 建议第一次安装完重启浏览器,或者刷新你需要使用的页面。
2. 当你不需要使用该插件时,建议把开关关上(插件icon变为灰色),以免对页面正常浏览造成影响。
3. 该插件只会在JS层面上对返回结果进行修改,即只会修改全局的XMLHTTPRequest对象和fetch方法里的返回值,进而影响页面展现。而你在chrome的devtools的network里看到的请求返回结果不会有任何变化。

by:Kenny 
github:https://github.com/shenzhenjinma/hook-chrome-ajax
友情提示参考了:https://github.com/YGYOOO/ajax-interceptor对功能进行了改进和优化                    

扩展基本信息

名称 HookAjax HookAjax
ID alnpmifcbpkbniplnfkpnobdlmblkcfg
官方URL https://chromewebstore.google.com/detail/hookajax/alnpmifcbpkbniplnfkpnobdlmblkcfg
简介 HookAjax XHR Fetch
文件大小 524 KB
安装次数 44
当前版本 2.2
更新时间 2021-10-27
上架时间 2021-10-27
开发者 Kenny Huang
电子邮箱 [email protected]
付费类型 free
支持的语言 zh-CN
manifest.json
{
    "update_url": "https:\/\/clients2.google.com\/service\/update2\/crx",
    "name": "HookAjax",
    "version": "2.2",
    "description": "HookAjax XHR Fetch",
    "permissions": [
        "storage",
        "http:\/\/*\/",
        "https:\/\/*\/"
    ],
    "background": {
        "scripts": [
            "background.js"
        ],
        "persistent": true
    },
    "browser_action": [],
    "icons": {
        "16": "images\/16_gray.png",
        "32": "images\/32_gray.png",
        "48": "images\/48.png",
        "128": "images\/128.png"
    },
    "manifest_version": 2,
    "content_scripts": [
        {
            "matches": [
                ""
            ],
            "js": [
                ".\/content.js"
            ],
            "run_at": "document_start",
            "all_frames": true
        }
    ],
    "web_accessible_resources": [
        "pageScripts\/defaultSettings.js",
        "pageScripts\/main.js",
        "iframe\/index.html"
    ]
}