A smart Chrome extension that automatically identifies and closes duplicate tabs to keep your browser organized and improve performance.
- 🤖 Real-Time Auto-Detection: Automatically detects and closes duplicate tabs as soon as they're opened
- 🔍 Smart Detection: Finds duplicate tabs across all windows with intelligent URL matching
- 🧹 One-Click Cleanup: Manual scan and close all duplicates with a single button click
- 🎯 Selective Removal: Choose which duplicate groups to close manually
- 📊 Clear Statistics: See how many duplicates were found during manual scans
- 🎨 Modern UI: Clean, intuitive interface with smooth animations and live status indicator
- ⚡ Fast Performance: Efficient tab scanning and real-time duplicate management
The extension operates in two modes:
- Monitors tab creation and navigation events in real-time
- When a new tab opens or navigates to a URL, checks for existing duplicates
- Automatically closes older tabs with the same URL (keeps the newest one)
- Works silently in the background without user intervention
- Skips Chrome internal pages and new tab pages
- Scans all open tabs across all Chrome windows when popup is opened
- Groups tabs by URL (ignoring URL fragments for better matching)
- Identifies groups with multiple tabs as duplicates
- Shows statistics and duplicate groups in the popup interface
- Allows selective or bulk removal of duplicates
- Keeps the most recently accessed tab from each group
- Download or clone this repository
- Open Chrome and navigate to
chrome://extensions/
- Enable "Developer mode" in the top right corner
- Click "Load unpacked" and select the
duplicate-tabs
folder - The extension icon will appear in your Chrome toolbar
Automatic Operation:
- The extension works automatically in the background
- When you open a duplicate tab, the older one is closed instantly
- No user action required - just install and enjoy a cleaner browser!
Manual Control:
- Click the extension icon in your Chrome toolbar
- The extension will scan for any remaining duplicate tabs
- View the results:
- All Clean: No duplicates found (auto-detection is still running)
- Duplicates Found: Shows statistics and duplicate groups
- Choose your action:
- Close All Duplicates: Removes all duplicate tabs at once
- Close Group: Remove duplicates from a specific website
- Refresh Scan: Re-scan for duplicates
This extension requires:
tabs
: To access and manage your browser tabsactiveTab
: To interact with the currently active tab
Privacy Note: This extension:
- ✅ Works entirely locally - no data is sent to external servers
- ✅ Only accesses tab URLs and titles for duplicate detection
- ✅ Does not store or track your browsing history
- ✅ Does not access page content or personal data
- Manifest Version: 3 (latest Chrome extension standard)
- Architecture: Service Worker background script + popup interface
- Compatibility: Chrome 88+ (Manifest V3 support)
duplicate-tabs/
├── manifest.json # Extension configuration
├── background.js # Service worker for tab management
├── popup.html # Extension popup interface
├── popup.js # Popup interaction logic
├── styles.css # Modern UI styling
├── icon*.png # Extension icons (16, 32, 48, 128px)
└── README.md # This file
- DuplicateTabManager: Core logic for finding and managing duplicate tabs
- DuplicateTabUI: Popup interface for user interactions
- URL Normalization: Smart URL comparison (removes fragments, handles query parameters)
Feel free to submit issues, feature requests, or pull requests to improve this extension.
This project is open source and available under the MIT License.