- Clone the repo
- Open
chrome://extensions, enable Developer Mode - Click "Load unpacked", select the repo root
- Make changes — refresh the extension to reload
- Vanilla JS, ES2022+
- No build step, no bundler
- 2-space indentation
constby default, descriptive names- Import constants from
src/shared/constants.js— no magic numbers
Open tests/engine.test.html directly in Chrome. The test suite runs the classification engine against a set of known inputs and reports pass/fail in the browser.
Rules live in src/rules/. To add a new rule:
- Add to the appropriate file (
extension-rules.js,domain-rules.js, orkeyword-rules.js) - Add a test case in
tests/engine.test.html - Test with "Load unpacked" in Chrome
- Submit a PR explaining why this rule improves classification
Include:
- Chrome version
- A specific download that was misclassified
- What classification you expected vs what KeepTrack assigned
- One feature or fix per PR
- Keep it small and focused
- Update CHANGELOG.md