Response Proxy

一款代理请求(包括 XMLHttpRequest 和 fetch)响应结果的油猴脚本,即 mock 请求的响应。

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

ئاپتورى
daief
بۈگۈن قاچىلانغىنى
0
جەمئىي قاچىلانغىنى
414
باھا نومۇرى
0 0 0
نەشرى
0.0.1
قۇرۇلغان ۋاقتى
2020-12-17
يېڭىلانغان ۋاقتى
2020-12-17
Size
86.5 KB
ئىجازەتنامىسى
يوق
قوللايدىغىنى
بارلىق بېكەتلەر

一款代理请求(包括 XMLHttpRequest 和 fetch)响应结果的油猴脚本,即 mock 请求的响应。

插件启用后,页面左上角会出现一个小按钮,点击即可唤起操作面板。

域名匹配规则Api 匹配规则 默认以字符串子串的形式去匹配,若头、尾均是 / 则以正则的形式去匹配,如 /(bilibili)|(baidu)\.com/ 会被实例化为正则表达式再去进行匹配。

日志会直接在控制台输出。

Github 地址:https://github.com/daief/gm-response-proxy

TODO

  • [x] 支持 XHR
  • [x] 支持 fetch
  • [ ] 界面(Vue 模块)异步加载,预计能极大减少脚本初始化大小,提升体验
  • [ ] 界面优化
  • [x] iframe 的情况。
    • 所有 iframe 都会注入脚本
    • 只在顶层 iframe 展示操作按钮,列出 iframe 匹配的规则
  • [ ] 规则开关
  • [ ] 国际化(大概)