A browser extension that lets you modify HTTP request headers for specific URL patterns.
- Complete header management: add, edit, enable/disable, or remove HTTP request headers
- Powerful pattern matching with wildcard URL pattern support
- Support for multiple rules per URL pattern
- User-friendly interface with dark/light mode support
- Real-time header modification without browser restart
- Clone this repository or download as ZIP
- Open Chrome and navigate to
chrome://extensions
- Enable "Developer mode" in the top right corner
- Click "Load unpacked" and select the HeaderForge directory
- Click the HeaderForge icon in your browser toolbar
- Manage header modification rules:
- Add new rules: Specify URL pattern, select the operation to be performed (set/remove), and add the header name and/or value
- Edit existing rules: Click the edit icon on any rule to modify its parameters
- Delete rules: Click the trash icon to remove unwanted rules
- Enable/disable rules: Toggle the switch for any rule
- All changes take effect immediately for new requests, but you must refresh web pages to see them applied effectively
The extension is organized as follows:
background
- Contains the service worker that applies rules in the backgroundservice_worker.js
- Initializes and applies header modification rules
icons
- Extension icons in various sizes for browser displayimages
- Contains SVG logolib
- Third-party librariesbootstrap/
- CSS framework for the UIbootstrap-icons/
- Icon set used throughout the interface
modules
- Core business logicrule-import-export.js
- Handles importing/exporting of rulesrule-manager.js
- CRUD operations for header rulesui-helpers.js
- UI manipulation functions
utils
- Utility functionsdnr-utils.js
- Declarative Net Request API helpersfavicon-cache.js
- Caching system for domain faviconsmodal-confirmation.js
- Bootstrap modal confirmation dialogstoast-notification.js
- Toast notification system for user feedback
popup.js
- Main entry point for the extension UIpopup.html
- HTML structure for the extension popuppopup.css
- Styling for the extension popupmanifest.json
- Extension configuration file
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Feel free to submit a pull request or open an issue.