A Chrome extension that allows you to quickly switch between your current tab and the last used tab, plus duplicate the current tab, similar to Firefox's behavior.
- Tab Switching: Quickly switch between current and last used tab
- Tab Duplication: Duplicate the current tab with a keyboard shortcut
- Keyboard Shortcuts:
Alt+Tab(Mac) /Ctrl+Q(Windows/Linux) to switch to last used tabAlt+Shift+D(Mac) /Ctrl+Shift+D(Windows/Linux) to duplicate current tab
- Popup Interface: Click the extension icon to access both features manually
- Automatic Tracking: Automatically tracks your tab usage in the background
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" in the top right corner
- Click "Load unpacked" and select this folder
- The extension will be installed and ready to use
Switch to Last Used Tab:
Alt+Tabon MacCtrl+Qon Windows/Linux
Duplicate Current Tab:
Alt+Shift+Don MacCtrl+Shift+Don Windows/Linux
All shortcuts can be customized in Chrome's extension settings at chrome://extensions/shortcuts
- Click the extension icon in the toolbar
- View current and last used tab information
- Click "Switch to Last Used Tab" button to switch tabs
- Click "Duplicate Current Tab" button to duplicate the current tab
The extension tracks tab activation events and maintains a record of:
- Current active tab
- Last used tab (the tab you were on before the current one)
Tab Switching: When you use the switch shortcut or button, it activates the last used tab, making tab switching quick and efficient.
Tab Duplication: When you use the duplicate shortcut or button, it creates a new tab with the same URL as the current tab and places it immediately after the current tab.
manifest.json- Extension configurationbackground.js- Service worker that tracks tab usagepopup.html- Extension popup interfacepopup.js- Popup functionalityicon*.png- Extension icons (16x16, 48x48, 128x128 PNG files)requirements.txt- Python dependencies for icon generationLICENSE- MIT Licensecreate_simple_icons.py- Script to generate icons
You can customize the keyboard shortcut by:
- Going to
chrome://extensions/shortcuts - Finding "Last Used Tab Switcher"
- Setting your preferred key combination
- The extension requires "tabs" permission to track and switch between tabs
- Tab tracking starts when the extension is installed/enabled
- If the last used tab is closed, the extension will handle this gracefully