https://github.com/gromnitsky/edit-request-headers
A browser extension (manifest v3) to add, modify, or remove HTTP request headers (such as Referer or Cookie) using the declarativeNetRequest API
https://github.com/gromnitsky/edit-request-headers
chrome-extension firefox-addon
Last synced: 9 days ago
JSON representation
A browser extension (manifest v3) to add, modify, or remove HTTP request headers (such as Referer or Cookie) using the declarativeNetRequest API
- Host: GitHub
- URL: https://github.com/gromnitsky/edit-request-headers
- Owner: gromnitsky
- Created: 2024-09-23T16:55:15.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-09-12T10:08:18.000Z (22 days ago)
- Last Synced: 2025-09-12T12:23:18.814Z (22 days ago)
- Topics: chrome-extension, firefox-addon
- Language: JavaScript
- Homepage:
- Size: 190 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A browser extension (manifest v3) to add, modify, or remove HTTP
request headers (such as Referer or Cookie) using the
declarativeNetRequest API.* [Chrome Web Store][]
* [Firefox Addons][]
* [.crx file][]Upon installation, you'll see an options page resembling an INI-file
editor:
Each INI section corresponds to a separate *rule*. The section name
serves as a simple *URL filter*, which can be:* a domain name, like `example.com`;
* a domain name with a pathname, like `example.com/foo`.Subdomains will be matched as well (e.g., `www.example.com`). To disable
this, prefix the *URL filter* with `https://`.Each key-value pair corresponds to a header name and its desired
value. If the value is empty, the header will be removed from the
request.The one exception is the special `.priority` key that sets an internal
property of a *rule*. The default value is 1 (the lowest
priority). For each extension, browser picks at most 1 candidate per
request, hence when > 1 extension has a matching rule, increasing the
value of the `.priority` key may help.## Install
~~~
$ sudo dnf install jq jsonnet
$ make crx
$ find -name \*crx
~~~Drag-and-drop a generated .crx into `chrome://extensions/`.
## License
MIT
[.crx file]: https://sigwait.org/~alex/demo/chrome/
[Chrome Web Store]: https://chromewebstore.google.com/detail/edit-request-headers/keopaklpgapphnmffbgaaklcaelcpeei
[Firefox Addons]: https://addons.mozilla.org/en-US/firefox/addon/edit-request-headers/