Limit the maximum number of tabs that can be open at the same time.
xTab is a Chrome extension that lets you limit the maximum number of tabs that can be open at one time.
You can set the tab limit to any number and choose what tab should be removed when you hit that limit:
- Least recently used (default)
- Least accessed
- Oldest
You can alternatively block new tabs from opening completely once the limit has been reached.
Pinned tabs, tabs playing audio, and tabs that you have never visited (opened in the background) will not be closed.
If you are looking to install in an enterprise environment and customize settings using a group policy please contact us here: https://xtab.app
Note that after the extension is installed, if you do not change the default settings, it will close any tabs you have open beyond a 20 tab limit. For example, if you have 50 tabs open when the extension is installed, the next tab you open will remove 30 tabs. You can avoid this behavior by changing the default settings as soon as it is installed.
NOTE that a new tab opens when the extension is updated to version 2.0. This is a one time thing that is required to transfer the settings over to the new version which uses a different storage mechanism. This is required for changes related to manifest v3.
Changes
v2.0.4
- Fixes issue where if the maximum number of tabs is set to 0, you may not be able to open a new browser window
v2.0.3
- Fixed “Block without warning” behavior on Microsoft Edge when using the `block` algorithm
v2.0.2
- Fixed issue introduced in version 2.0.0 where in some cases you may be allowed to open more tabs than your limit and then when you go to open the next one, it may close tabs that do not match your current setting. This has to do with the manifest v3 updates mandated by Google. Extensions have to use service workers and the workers get automatically killed every five minutes. This update preserves the state in session storage so when the service worker starts again, it works properly
- Fixed issue where the migration tab may not run if you are at your tab limit and using `block` algorithm
- Fixed issue where sometimes tabs may close at browser startup when using `block` algorithm and “block without warning”
- Fixed styles in the xTab popup
v2.0.1
- Make sure migration tab launches in the background
v2.0.0
- Updated extension to support manifest v3
- Updated storage to use chrome.storage API instead of localStorage directly
- Changed default behavior when using “block” algorithm to block without warning (This change in v1.0.0 was questionable and a little confusing so this restores the previous behavior)
v1.0.1
- Updated extension to remove advertisement in favor of a donation link
v1.0.0
- Rearchitected to support additional functionality and custom builds.
- Updated the pop up UI to make it simpler to understand what the different options do
- Added an option to prevent tabs that are playing audio from being closed by the extension (enabled by default)
- Added an option to recycle existing tabs. This means that instead of closing an old tab it will reuse the old tab and move it into the new position. This allows you to use the back button to get back to a tab that has been closed (disabled by default)
- Added a page that shows up in place of a new tab if you have the extension set to block new tabs from opening (enabled by default)
- Added an option to block tabs from opening without showing a page (disabled by default)
- Added new xTab logo to popup menu
- Updated extension icon
- Updated extension logo
- Improved handling of tabs you have never been to
- Decreased amount of time until a tab is considered active to prevent cases where sometimes a tab doesn’t get closed even though you have been to it
- Reduced number of options in tab limit dropdown
v0.2.1
- Updated copy in popup to be more clear
v0.2.0
- Added option to block new tabs from opening instead of auto closing an older tab
- Handled cases where the tab id could change for an existing tab
- Improved handling of tabs you have never been to so they are less likely to be closed in different modes
v0.1.6
- Fixed issue that would cause this extension to sometimes not work if a configuration value was missing in local storage
v0.1.5
- Added timer to only consider a tab active after it has been open for a few seconds
- Updated to handle tabs that were open before the extension was installed.
v0.1.4
- Updated background page to be persistent
v0.1.3
- Fixed issue where sometimes tabs you haven’t been to could still be closed.
v0.1.2
- Updated to prevent closing tabs you have never been to (for example if command clicking to open tabs in the background)
v0.1.1
- Fixed issue where sometimes the active tab would be closed