Browser Bookmark Cleanup
Analyze first, organize, then clean up. All writes are opt-in and reversible.
Supported browsers: Chrome and Firefox out of the box. Other Chromium-based browsers (Edge, Brave, Arc, etc.) can be handled by pointing to their profile directories, which use the same Bookmarks JSON format as Chrome.
Workflow
- Discover browser profiles.
- Run read-only analysis and share findings.
- Propose cleanup plan with preview.
- Get explicit user approval before any writes.
- Dry-run first, then write with automatic backup.
- Report changes and how to roll back.
Hard Safety Rule
Never send network requests to bookmark URLs. Analysis uses only local files.
Commands
Discover profiles:
python3 scripts/browser_bookmarks.py discover [--browser chrome|firefox]
Analyze bookmarks:
python3 scripts/browser_bookmarks.py analyze --bookmarks "<PATH>" --output /tmp/bookmark-analysis.json
Apply plan (dry-run by default, --write to commit):
python3 scripts/browser_bookmarks.py apply-plan --bookmarks "<PATH>" --plan /tmp/bookmark-plan.json [--write]
Analysis Categories
- Exact and semantic duplicate URLs
- Tracking-parameter variants (
utm_*,gclid,fbclid, etc.) - Subdomain and domain concentration
- HTTP links that should be HTTPS
- Empty, singleton, deep, and oversized folders
- Weak bookmark names
- Old bookmarks by age
- Never-visited and stale bookmarks (from browser history)
Approval Gate
Before any write: show plan preview, get explicit approval, ask user to close the browser.
Plan Format
See references/plan-schema.md for the JSON plan structure.
Rollback
Restore the timestamped backup file created before any write.