| Name | Size |
|---|---|
| CHANGES.md | 252B |
| LICENSE | 1072B |
| Makefile | 52B |
| README.md | 1045B |
| icon.svg | 284B |
| manifest.json | 707B |
| src/bg.js | 1288B |
| src/settings.css | 418B |
| src/settings.html | 301B |
| src/settings.js | 695B |
xiHeaders - modify request headers
This is yet another extension to modify request headers. It stands out by being extremely simple (~100 lines of code).
Rules
Rules are defined as a JSON. Each rule has the following properties:
pattern: the URL pattern this rule applies to. Patterns can include*as a wildcard.header: the name of the headervalue: the new valueaction:add|replace|remove[default:replace]request_types: a list of request types [default: any]
Examples
Show reddit images instead of redirecting to a HTML page:
{
"pattern": "https://i.redd.it/*",
"header": "Accept",
"value": "image/*"
}
A similar rule can also be used for i.imgur.com.
Prior Art
- https://addons.mozilla.org/firefox/addon/header-editor/
- https://addons.mozilla.org/firefox/addon/modify-header-value/
- https://addons.mozilla.org/firefox/addon/simple-modify-header/