Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[ENGG-1977] MV3: 2KB limit for regexFilter in DNR

オープン
#47 コメント 3 件 リアクション 5 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

関連するプルリクエストがすでにマージされています。

  • #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 の本文から書いたものです。

説明

type:bug

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
CleanShot 2024-06-27 at 12 51 57@2x

Converted Redirect Rule
CleanShot 2024-06-27 at 12 55 11@2x

Pattern 2

Current Replace Rule
CleanShot 2024-06-27 at 13 36 51@2x

Converted Redirect Rule
CleanShot 2024-06-27 at 13 37 23@2x

主要言語
TypeScript
スター
96
フォーク
25
平均マージ
1日 8時間
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

requestly/interceptor のほかの issue

requestly/interceptor の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。