[ENGG-1977] MV3: 2KB limit for regexFilter in DNR
已经有一个关联 PR 被合并了。
- #1869 来自 @wrongsahil —— 已合并
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- typescript
- 领域
- devtools
调研方向
Start by reproducing the Chrome declarativeNetRequest error with host-based regex rules and review the linked regex-rules documentation. Compare the suggested URL source conditions and redirect-rule approach against the affected replace-rule use cases. Done means supported rules no longer exceed the 2KB compiled regexFilter limit.
由索引模型根据 Issue 内容生成。
描述
When creating host regex rules Unchecked runtime.lastError: Rule with id 1 was skipped as the "regexFilter" value exceeded the 2KB memory limit when compiled. Learn more: https://developer.chrome.com/docs/extensions/reference/api/declarativeNetRequest#regex-rules
Possible Solutions
1. Using URL source conditions instead of HOST source conditions
If you are using HOST - EQUALS | CONTAINS | MATCHES | WILDCARD, then try switching it to URL source condition.
2. Try using Redirect Rule
Almost all the usecases that are supported by replace rule are also supported by Redirect Rule . Try creating a redirect rule instead
Some patterns to convert Replace rule into Redirect rule
Pattern 1
Current Replace Rule
Converted Redirect Rule
Pattern 2
Current Replace Rule
Converted Redirect Rule
- 主要语言
- TypeScript
- 星标
- 96
- 派生
- 25
- 平均合并
- 1 天 14 小时
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
requestly/interceptor 的其他 Issue
-
status:triage type:bug
难度 2/5 1-3 小时 新手友好度 76/100
requestly/interceptor#130 · 2 条评论 ·
-
[Bug] Query parameter rules drop equals signs from existing values可能已有人在做 @jashkarangiya 于 27 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
requestly/interceptor#121 ·
-
status:triage type:bug
难度 3/5 1-2 天 新手友好度 45/100
requestly/interceptor#128 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 35/100
requestly/interceptor#26 · 1 条评论 ·
-
Setting up proxy on mobile/emulator via QR可能重新可做 @chiru-chintha 于 169 天前认领,目前没有进行中的 PR。 未关闭migration:misfiled-interceptor
难度 5/5 一周以上 新手友好度 38/100
requestly/interceptor#27 · 2 条评论 ·
查看 requestly/interceptor 的全部 Issue
相似的 Issue
-
bug go
难度 2/5 1-3 小时 新手友好度 82/100
genkit-ai/genkit#6761 · 1 条评论 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
NousResearch/hermes-agent#136483 ·
维护者通常 1 天内回复
-
documentation
难度 2/5 1-3 小时 新手友好度 84/100
facioquo/stock-indicators-dotnet#2316 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
vercel-labs/skills#2460 ·
维护者通常 1 天内回复