Skip to content

About

A lightweight request header modification extension with grouped profiles, multilingual UI, and light/dark themes — the best alternative to ModHeader / 轻量级请求 Header 修改扩展,支持分组切换、多语言界面和亮暗主题,ModHeader 插件的最佳替代

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Repository files navigation

HeaderHack

A lightweight request-header extension with groups, scopes, full-site access, multiple languages, and themes.

English | 简体中文

Features

  • Manage Key / Value headers in switchable groups
  • Switch groups with cards showing the name and header count; use the title icons to Rename or Delete, and the trailing card to Add
  • Domain, Regex, and Prefix scopes support Invert to exclude matching requests; switching scopes keeps the entered value
  • Right-click the toolbar icon to toggle, switch groups, or open matched requests
  • Choose All, Domain, Regex, or Prefix
  • Scopes only filter requests; header changes need one full-site grant, with no site access at install
  • Use the switch to control all modifications
  • Inspect matched requests on demand: monitoring starts on click and stops when the page closes, with header filters, click-to-sort, pagination, and row details (dev mode)
  • Check GitHub releases for new versions and release notes
  • Chinese and English, light and dark themes, no build step or dependencies

Installation

Download and unzip the source, open chrome://extensions/, enable Developer mode, choose "Load unpacked", and select this project directory.

Usage

Click a group card to switch; click the pencil in the title to rename (Enter or blur saves, Esc cancels); use the trailing card to add a group; deletion requires confirmation. Under Scope, choose All, Domain, Regex, or Prefix; it only decides which requests are modified. With Domain, Regex, or Prefix, enable Invert to exclude matching requests instead; switching scopes keeps the entered value. Right-click the toolbar icon to toggle, switch groups, or open the matched requests page.

Chrome requires host access for both the request URL and the initiating page when changing headers, so every scope requests the same full-site access; otherwise cross-origin requests are silently skipped. Select Grant when prompted; without access, the group remains inactive.

Enter each Key and Value under Headers; the switch controls whether the configuration is active. Select the list icon in the header to open Matched requests; monitoring only starts after you select Start monitoring, and stops when you stop it or close the page. The list keeps the last 200 entries using Chrome's debug API for unpacked extensions — available in developer mode only — and is cleared when Chrome closes.

The popup title shows the current version. Click the version badge to read GitHub Releases (anonymous requests, cached for 6 hours); when a newer version exists the title shows a dot, the version, expandable release notes, and a link to the release page. Up to date and failure messages disappear after 3 seconds.

Screenshots

HeaderHack pinned extension

HeaderHack popup

About

A lightweight request header modification extension with grouped profiles, multilingual UI, and light/dark themes — the best alternative to ModHeader / 轻量级请求 Header 修改扩展,支持分组切换、多语言界面和亮暗主题,ModHeader 插件的最佳替代

Topics

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages