HistSieve is a Chrome extension for cleaning browser history from rules you control.
- Delete matching history entries immediately after a visit.
- Match active keywords against the page URL and title, case-insensitively.
- Enable or disable individual keyword rules without deleting them.
- Run cleanup manually from the toolbar popup or the settings page.
- Run scheduled cleanup by interval.
- Run cleanup when Chrome starts.
- Delete either all history or entries older than a configured number of days.
- Import and export keyword rules as JSON.
- English and Simplified Chinese UI.
- Automatic light and dark theme that follows the system setting.
HistSieve processes browser history locally in Chrome. It does not send browsing history, keywords, settings, or cleanup results to any server.
Keyword rules and cleanup settings are stored with chrome.storage.local.
See PRIVACY.md for the full privacy statement.
history: read and delete browser history entries according to the user's rules.alarms: schedule recurring cleanup.storage: save settings and keyword rules locally.tabs: read tab URLs and titles locally so title-only keyword matches can be removed.
HistSieve does not request host permissions.
Requires Node.js 20+ and pnpm 9+. If pnpm is missing, run corepack enable.
pnpm install
pnpm dev # build with watch mode for local Chrome reloads
pnpm test
pnpm typecheck
pnpm buildLoad the extension from dist in chrome://extensions with Developer Mode enabled.
pnpm assets:store
pnpm build:releasepnpm assets:store renders product screenshots with local Chrome and uses macOS
sips for icon PNGs. Set CHROME_PATH if Chrome is not installed in the default
location.
The upload package is generated under release/.
- Build the extension with
pnpm build. - Load
distas an unpacked extension in Chrome. - Open the options page and add a keyword such as
example.com. - Visit a matching URL and confirm it is removed from Chrome history.
- Use the popup or options page to run cleanup manually.
- Toggle scheduled cleanup and confirm settings persist after reopening Chrome.
- Export keywords, remove them, import the file, and confirm the list is restored.
MIT.
