Skip to content

A Chrome extension to erase violations of the Hatch Act on government websites during the 2025 shutdown.

Notifications You must be signed in to change notification settings

lowlydba/escape-hatch

Repository files navigation

Escape Hatch

Chrome extension that runs on *.gov pages and replaces partisan phrases with neutral alternatives.

Features

  • Content script scans text nodes and performs find/replace from a built-in dictionary plus user-defined entries.
  • Options page to enable/disable and add/remove custom replacements.
  • No data collection; settings are stored only in the user's browser via chrome.storage.sync.

How to load locally (Dev Mode)

  1. Open Chrome (or Chromium-based browser) and navigate to chrome://extensions
  2. Enable "Developer mode"
  3. Click "Load unpacked" and choose this repository folder
  4. Open a *.gov page to see replacements applied (or use a local HTML file and adjust manifest temporarily)

Files

  • manifest.json - MV3 manifest
  • content.js - injected content script
  • phrases.js - built-in replacement list
  • options.html / options.js - UI for user control
  • background.js - small initialization logic

Notes and constraints

  • The extension is designed not to alter form controls, scripts, or site functionality. It only edits visible text nodes.
  • Default phrases are intended to be transparent and editable via the options page.

About

A Chrome extension to erase violations of the Hatch Act on government websites during the 2025 shutdown.

Topics

Resources

Stars

Watchers

Forks