# CLAUDE.md ## Overview Firefox WebExtension (Manifest V2) that bypasses paywalls on news sites. This repo is a fork of the public `bypass-paywalls-firefox-clean` project (magnolia1234); upstream updates are pulled in wholesale as single commits (see `changelog.txt`), so avoid unrelated restructuring that would make future merges harder. ## Commands Plain WebExtension, no build step and no package manager (no `package.json`). - Syntax-check a JS file: `node --check ` - Validate a JSON file: `node -e "JSON.parse(require('fs').readFileSync(process.argv[1]))" ` - Load unpacked in Firefox: `about:debugging#/runtime/this-firefox` → "Load Temporary Add-on" → select `manifest.json`. - No test suite and no linter/formatter are configured. ## Architecture See `docs/architecture.md` for the file layout (background script, content scripts, options UI, site-rule data files). ## Conventions - Site bypass rules live in `sites.js` (upstream) and `custom/sites_custom.json` (local overrides, merged at runtime). Prefer adding overrides in the `custom/` files rather than editing the upstream `sites.js` directly. - `manifest.json` version (`4.2.8.2` style, 4 components) is upstream's own versioning and is bumped by upstream syncs, not by this repo's release workflow. This repo's own release version lives in the root `VERSION` file instead. ## Workflow quirks - Upstream syncs replace large generated files (`sites.js`, `background.js`, `contentScript*.js`, `README.md`/`README.html`, `changelog.txt`) wholesale — keep local changes isolated to `custom/` where possible. ## Deployment Not applicable — this is a browser extension loaded locally or published to the Firefox Add-ons store manually; there is no server deployment. ## Gotchas - There is no `development` branch yet; PRs target it once it exists, per the global git workflow. - No linter/test tooling exists in this repo; CI and hooks only run syntax/JSON validation until real tooling is added.