A browser extension that allows you to inject custom HTTP request and response headers that are set on all affected requests performed by the browser.
Rubric supports Firefox and Chrome.
Install Rubric via Firefox Add-ons or Chrome Web Store.
For local development with Hot Module Replacement (HMR), only Chrome is supported. Local development is supported for Firefox as well, but HMR will not work due to it relying on service workers which are currently disabled/not supported in Firefox.
npm install
npm run dev
chrome://extensions
dist
folderTo create a production build, run npm run build
.
While Rubric should in theory support Safari as well, Apple does not make it possible to distribute a Safari Web Extension without it being wrapped in a MacOS native app.
Rubric is built on the excellent CRXJS Vite Plugin, using Preact for the popup window rendering and MUI Material Design library for the components and styling. Rubric is a Manifest V3 extension and uses the declerativeNetRequest API to add rules for header injection without having to intercept each request in runtime.