[feature] 增加逻辑规则触发 重写、脚本 等功能

Open
#1,561 2 comments 0 reactions 1 assignee View on GitHub

@MegatronKing is already working on this.

Since Apr 16, 2025.

Assessment

This issue has not been assessed yet.

Description

enhancement

Feature Request: 增强网络请求和响应处理的逻辑控制

希望能够对网络请求和响应的内容(例如请求头、请求体、URL、User-Agent,以及响应头、响应体、状态码等)通过逻辑运算符 ANDORNOT 来组合多个条件,构建复杂的复合逻辑多条件组合判断,以实现更复杂的策略。

预期行为:
  • 触发逻辑规则为 AND,((UA,Edge),(URL,bilibili.com)),请求中 UA 为 Edge 浏览器 URL 为 bilibili.com ,则将 请求头、请求体 的其中一部分修改为 A 账号的数据。
  • 触发逻辑规则为 AND,((UA,Firefox),(URL,bilibili.com)),请求中 UA 为 Firefox 浏览器 且 URL 为 bilibili.com ,则将 响应头、响应体 的其中一部分修改为 B 账号的数据。
  • 触发逻辑规则为 NOT,(AND,((UA,Chrome),(URL,bilibili.com))),请求中 UA 不为 Chrome 浏览器 且 URL 不为 bilibili.com ,则将 响应头、响应体 的其中一部分修改为 C 账号的数据。
目前行为:

URL 为 bilibili.com 的所有请求 只能修改为 A 账号的数据。

目前单一的触发条件非常不合理,复杂的网络请求需要更细致的区分和处理,建议优化。
Dominant language
No language data
Stars
6.8k
Forks
268
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from reqable/reqable-app

All issues in reqable/reqable-app

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.