GithubHelp home page GithubHelp logo

g0ngjie / ajax-proxy Goto Github PK

View Code? Open in Web Editor NEW
79.0 3.0 7.0 21.3 MB

:bulb: Browser extension for Chromium kernel. For modifying your Ajax responses

License: MIT License

HTML 4.85% JavaScript 22.99% Vue 31.42% SCSS 0.12% TypeScript 40.61%
chrome-extension redirector chrome interceptor ajax-interceptor ajax manifest-v3 manifestv3 microsoft-edge-extension edge-extension

ajax-proxy's Introduction


Ajax Proxy


A browser plugin based on Chromium kernel · Tools for Developers · For the modification of web-side response

GitHub chrome web store chrome rating edge addons edge users

English | 中文

When to use

  • When actual data fails to meet expected results, mocking data is needed.
  • In development or production stages, verification of exceptional scenarios or edge cases is necessary.
  • The frequent changes in interface data hinder the development process.
  • When a certain interface returns a 404 error.

Installation

Microsoft Edge

Google Chrome

Examples

Video: https://www.youtube.com/watch?v=F__7LXBqnvQ&list=PLniy0-3-8-V1ZhsmG6__HdOJBAschGWSt

operation.gif

zhihu

FAQ

  1. Data interception does not work
    • You can switch between interceptor and redirector to solve the Ajax referencing problem issues_checked
    • You can select the Network section in Developer Tools and disable caching by checking ☑️ issues_disabled_cache
  2. Function-based response explanation

Monorepo

Package Description
@proxy/compatibility Old Data Compatibility Library
@proxy/lib Manipulating the Ajax Core Logic Library
@proxy/shared-utils Public Class Libraries
@proxy/shell-chrome Browser Extension Library
@proxy/vue-panels Application Operator Panel

Use of source code

  1. Download the corresponding version of Source code and unzip it
  2. Open Developer mode in your browser
  3. Then just load the unpacked folder

Testing

You can test it directly in Swagger

⭐ Stargazers

Thanks for your support!

Stargazers for ajax-proxy

License

Ajax Proxy is MIT licensed.

ajax-proxy's People

Contributors

g0ngjie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ajax-proxy's Issues

F12中数据没变化

F12中数据没变化,但是js代码中接收到的数据变化了,是否是因为只是做了 JS 层的数据转换,并非是网络层的拦截,所有F12 抓包的数据还是之前的返回,期待作者回复

重定向功能自动去除自定义请求头问题

使用重定向功能,在转发后的请求中会去除自定义的请求头,目前测试2.1.0和2.1.4会有这个问题,使用1.9.8正常。
浏览器版本:Microsoft Edge
版本 106.0.1370.30 (正式版本) beta (64 位)

插件很强

实现了一些小功能,比如插件收费数据劫持,直接vip

请求不能拦截

有些url可以拦截,有些不能拦截,不知道是什么原因造成的。
image

谷歌版本116.0.5845.96,使用拦截器会疯狂发送请求

目前我的谷歌版本是116.0.5845.96,使用当前插件的拦截器拦截请求后,网络会疯狂的发送请求,且拦截不生效,mock数据不生效。

My current version of Google is 116.0.5845.96, after intercepting a request with the current plugin's blocker, the network will send requests like crazy, and the intercept does not work, mock data does not work.

能否实现函数式重定向?

比如我想把原url作为参数传递给重定向的url?

地址栏输入:https://v2.siar.us/aditv/livestream/chunks.m3u8
实际请求:https://live.fanmingming.com/player/?vurl=https://v2.siar.us/aditv/livestream/chunks.m3u8

注:通常我使用正则匹配原地址 /^http[^?]+m3u8$/

是否考虑支持请求体修改

现在的代理,实际上只有对响应体的修改。
一些情况下,是需要对请求体做一定修改的,是否考虑支持?目前好像 setup 有三个参数,第一个就是 req,但是实际上并未用到。

修改响应体能否支持函数

同过函数修改响应体,比如返回的响应体是 JSON,但是并不想全部重写整个内容,只修改其中某个字段的值,其他字段仍按原来的

安装后,拦截不好使

今天重新安装又试了下 一开始安装并使用是不好使的
只有切换 到重定向 在切换回拦截器 ,拦截才起效果。 感觉这应该是一个bug
作者有时间的话,可以看一下
image

重新打开list 页面的面板,数据存在丢失的情况

环境: macos edge 浏览器
新增若干个接口之后,并且新增若干个标签,关闭的时候选中某个标签。 关闭时间不能确定,重新再次打开插件,切换其他标签数据,发现数据为空, 不知道其他人有没有遇到过这个问题?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.