π A Firefox extension that automatically detects and closes duplicate tabs.
- Auto Detection: When you open a URL that already exists, automatically close the old tab and keep the new one
- Manual Scan: Manually scan all tabs to find duplicates
- One-Click Cleanup: Close all duplicate tabs with one click
- Flexible Settings:
- Option to ignore URL hash (#) portion
- Option to ignore URL query parameters (?)
- Exclude specific domains from processing
- Desktop Notifications: Show notifications when duplicate tabs are closed
- Open Firefox and type
about:debuggingin the address bar - Click "This Firefox" on the left panel
- Click "Load Temporary Add-on..."
- Navigate to this project folder and select the
manifest.jsonfile
(Not yet published)
- After installation, click the extension icon in the toolbar
- View current tab statistics
- Click "Scan Duplicates" to find duplicate tabs
- Click "Close All Duplicates" to clean up all duplicate tabs at once
- Customize options in the settings page
Tab-Deduplicator/
βββ manifest.json # Extension manifest file
βββ background.js # Background script (core logic)
βββ popup/
β βββ popup.html # Popup window HTML
β βββ popup.css # Popup window styles
β βββ popup.js # Popup window logic
βββ options/
β βββ options.html # Options page HTML
β βββ options.css # Options page styles
β βββ options.js # Options page logic
βββ icons/
β βββ icon-48.svg # 48x48 icon
β βββ icon-96.svg # 96x96 icon
βββ README.md # Documentation (English)
βββ README_zh.md # Documentation (Chinese)
tabs: Required to read and manage tabsstorage: Required to save user settingsnotifications: Required to show desktop notifications
- Firefox 57+ (WebExtension API support)
If you need PNG icons, use the following commands:
# Using Inkscape
inkscape -w 48 -h 48 icons/icon-48.svg -o icons/icon-48.png
inkscape -w 96 -h 96 icons/icon-96.svg -o icons/icon-96.png
# Or using ImageMagick
convert -background none icons/icon-48.svg icons/icon-48.png
convert -background none icons/icon-96.svg icons/icon-96.pngMIT License