ModHead is a Chrome extension that allows you to easily modify HTTP request headers. Key features: variables support and one-click token refresh from server.
- 🔧 Header Modification - Add, modify, or remove any HTTP request headers
- 🎯 URL Pattern Matching - Target URLs with flexible matching:
startsWith- URL starts with the patternendsWith- URL ends with the patternequals- Exact URL match
- 📍 Tab URL Filtering - Apply rules only when on specific websites
- 🔄 Variables System - Define reusable values with
${variableName}syntax - ⚡ Token Refresh - Update tokens via HTTP request with one click
- 🎨 Dark Theme - Comfortable viewing in any lighting
Install directly from the Chrome Web Store.
-
Clone the repository
git clone https://github.com/HawkeyePierce89/ModHead cd ModHead -
Install dependencies
npm install
-
Build the extension
npm run build
-
Load in Chrome
- Open
chrome://extensions/ - Enable "Developer mode"
- Click "Load unpacked"
- Select the
dist/directory
- Open
- Click the ModHead icon in Chrome toolbar to open Options
- Click "Create Rule"
- Enter a rule name (e.g., "API Auth")
- Add a target domain:
api.example.comwithstartsWithmatch - Add a header:
Authorization=Bearer your-token-here - Save and you're done!
All requests to api.example.com/* will now include your Authorization header.
For detailed documentation, visit the Wiki:
- Getting Started - Installation and first steps
- Variables - Reusable values system
- Token Refresh - Refresh tokens via HTTP
- Examples - Real-world use cases
- FAQ - Frequently asked questions
This project is licensed under the MIT License - see the LICENSE file for details.

