{"id":20675336,"url":"https://github.com/JSREI/js-xhr-hook","last_synced_at":"2025-05-10T15:30:27.244Z","repository":{"id":184337211,"uuid":"519313561","full_name":"JSREI/js-xhr-hook","owner":"JSREI","description":"ajax请求加密逆向神器：监控可视化、Hook打断点","archived":false,"fork":false,"pushed_at":"2023-07-31T06:59:18.000Z","size":26,"stargazers_count":13,"open_issues_count":5,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T17:46:49.669Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JSREI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-29T18:28:33.000Z","updated_at":"2025-04-08T00:53:26.000Z","dependencies_parsed_at":"2025-01-17T14:50:43.415Z","dependency_job_id":"e559033c-91aa-4bd3-b150-da8d93b35431","html_url":"https://github.com/JSREI/js-xhr-hook","commit_stats":null,"previous_names":["jsrei/js-xhr-monitor-debugger-hook","jsrei/js-xhr-hook"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSREI%2Fjs-xhr-hook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSREI%2Fjs-xhr-hook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSREI%2Fjs-xhr-hook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JSREI%2Fjs-xhr-hook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JSREI","download_url":"https://codeload.github.com/JSREI/js-xhr-hook/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253436246,"owners_count":21908288,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T21:09:14.963Z","updated_at":"2025-05-10T15:30:27.000Z","avatar_url":"https://github.com/JSREI.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XHR Hook\n\n# 还未开发完，只是public喽一眼，请勿期待随时烂尾。。。\n\n- 设置请求头断点 \n    - \n- before response断点\n    在响应后直接定位到xhr请求的响应体，这样就不需要吭哧吭哧\n- 请求头断点（不推荐）\n    - 与chrome提供的xhr断点功能重复，因此不推荐使用此功能\n``\n- 反xhr拦截器统一设置请求加密参数 \n有些网站会拦截每个xhr请求，统一为请求加上加密参数，\n  因为你不知道\n  \n- 阿斯顿阿斯顿\n  \n\n对于比较新的fetch api也归入xhr类别（反正Chrome就是这么分的），\n不再单独划分出一个脚本。\n\n\n\n\n\n    \n本脚本的定位就是帮助爬虫开发人员提高效率节省头发。\n\n\n\n本人在构思此脚本时通读了以下开源项目的源码，感谢大佬们愿意开源：\n- [https://github.com/wendux/Ajax-hook/blob/master/src/main.js](https://github.com/wendux/Ajax-hook/blob/master/src/xhr-hook.js)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJSREI%2Fjs-xhr-hook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJSREI%2Fjs-xhr-hook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJSREI%2Fjs-xhr-hook/lists"}