Add root CLAUDE.md, docs/architecture.md, LESSONS.md, .env.example, VERSION, .claude/settings.json hooks (syntax/JSON checks since no linter/tests exist yet), and CI/version-bump GitHub workflows. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2.0 KiB
2.0 KiB
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 <file> - Validate a JSON file:
node -e "JSON.parse(require('fs').readFileSync(process.argv[1]))" <file> - Load unpacked in Firefox:
about:debugging#/runtime/this-firefox→ "Load Temporary Add-on" → selectmanifest.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) andcustom/sites_custom.json(local overrides, merged at runtime). Prefer adding overrides in thecustom/files rather than editing the upstreamsites.jsdirectly. manifest.jsonversion (4.2.8.2style, 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 rootVERSIONfile 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 tocustom/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
developmentbranch 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.