MCPcopy Index your code
hub / github.com/FirefoxBar/HeaderEditor

github.com/FirefoxBar/HeaderEditor @5.2.12

Chat with this repo
repository ↗ · DeepWiki ↗ · release 5.2.12 ↗ · + Follow
391 symbols 1,112 edges 105 files 4 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Header Editor

Release Chrome Web Store Edge Mozilla Add-ons Mozilla Add-ons license Discussions Build Status

An extension which can modify the request, include request headers, response headers, response body, redirect requests, and cancel requests.

It's 100% FREE, no ADs, no data collection.

Visit he.firefoxcn.net for more documentations.

Get this extension

Browser Lite Full
Firefox Logo Firefox Official Download or Mozilla Add-ons Official Download or Mozilla Add-ons
Chrome Logo Chrome Chrome Web Store Install full version
Edge Logo Edge None Edge Addons
  • The official download is exactly the same as Mozilla Add-ons, but the Mozilla Add-ons review is very slow, usually taking more than a week, and you may not be able to get the latest version.
  • HeaderEditor-xxx-v2 is full version, HeaderEditor-xxx-v3 is lite version.
  • Diff between lite and full version

Permissions

Header Editor require those permissions:

  • tabs: Open links (such as the options page)

  • webRequest, webRequestBlocking, declarativeNetRequest, *://*/*: Modify requests

  • storage, unlimitedStorage: Storage rules and settings

  • debugger: Modify response body in Chrome

  • unsafe-eval: Execute custom function, code at src/share/core/rule-utils.ts#L41 (may change in the future, you can search for the newest location by new Function)

Contribution

Contribute codes: Submitting a pull request

Thanks to them for their contribution: YFdyh000 iNaru

Translation

English: Please submit a issue or pull request to file locale/original/messages.json

Other language: Please translate them on Transifex

Please note that some languages (such as zh-Hans) will not be translated on transifex because the browser does not support them, view full list.

How to build

Build

  • Install Node.js 24.x and pnpm 11.x.
  • Clone this project, or download the source code and extract it.
  • Run pnpm i --frozen-lockfile.
  • Run build command
  • For chrome full version, run npm run build:chrome_v2
  • For chrome lite version, run npm run build:chrome_v3
  • For firefox full version, run npm run build:firefox_v2
  • For firefox lite version, run npm run build:firefox_v3
  • Find build result at /dist_*

Development

  • Modify start command's TARGET_BROWSER to the version you want to build

  • Run npm run start

  • Open browser, load extension from /dist_* directory or /dist_*/manifest.json

Licenses

Copyright © 2017-2026 FirefoxBar Team

This project is licensed under the ​GNU GPL v2.0 or later. Unauthorized use for training, imitation, learning, generation, or related activities in the field of artificial intelligence (AI) is prohibited.

Technical Sponsorship

CDN acceleration and security protection for this project are sponsored by Tencent EdgeOne.

edgeone-logo

Extension points exported contracts — how you extend this code

Window (Interface)
(no doc)
src/global.d.ts
BoolOptionItem (Interface)
(no doc)
src/pages/options/components/bool-radio.tsx
HeaderFieldProps (Interface)
(no doc)
src/share/components/header-field.tsx
BoolRadioGroupProps (Interface)
(no doc)
src/pages/options/components/bool-radio.tsx
RuleDetailProps (Interface)
(no doc)
src/share/components/rule-detail.tsx
IEProps (Interface)
(no doc)
src/pages/options/sections/import-and-export/index.tsx
AutoCompleteProps (Interface)
(no doc)
src/share/components/auto-complete.tsx
IEState (Interface)
(no doc)
src/pages/options/sections/import-and-export/index.tsx

Core symbols most depended-on inside this repo

t
called by 207
src/share/core/utils.ts
get
called by 43
src/share/core/prefs.ts
set
called by 29
src/share/core/prefs.ts
isValidArray
called by 28
src/share/core/utils.ts
debug
called by 26
src/share/core/logger.ts
getVirtualKey
called by 13
src/share/core/utils.ts
getSync
called by 12
src/share/core/storage.ts
remove
called by 11
src/share/core/session-message.ts

Shape

Function 191
Method 116
Interface 47
Class 30
Enum 7

Languages

TypeScript100%

Modules by API surface

src/pages/options/sections/rules/index.tsx25 symbols
src/pages/background/request-handler/web-request-handler.ts20 symbols
src/pages/background/request-handler/chrome-response-modifier.ts16 symbols
src/pages/background/request-handler/dnr-handler.ts15 symbols
tests/e2e/scripts/utils.mjs14 symbols
src/share/core/utils.ts14 symbols
src/pages/options/sections/import-and-export/import-drawer/index.tsx13 symbols
src/pages/options/sections/group-select/index.tsx13 symbols
src/pages/options/sections/import-and-export/index.tsx12 symbols
src/pages/options/sections/import-and-export/cloud/index.tsx12 symbols
src/share/core/storage.ts11 symbols
src/share/core/types.ts9 symbols

For agents

$ claude mcp add HeaderEditor \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact