Automatically discards inactive browser tabs using the native discard API to free memory while preserving restore state.
Overview
Auto Tab Discard is a browser extension that reduces memory use by discarding tabs that have been inactive for a configured time. It calls the browser’s native tab discard mechanism rather than replacing page content with a custom lightweight page.
When a tab is discarded natively, the browser removes it from memory and stops background scripts, but the tab remains in the tab strip and can be restored with scroll position and page state preserved. The extension monitors open tabs and requests discarding when rules allow. Users can manually discard inactive tabs, maintain hostname exception lists, and tune conditions such as skipping pinned tabs, tabs playing media, tabs with unsaved forms, power-source rules, and idle-only discarding.
The project ships Manifest V3 builds to Chrome, Firefox, Edge, and Opera store channels, with Debian packaging available as webext-auto-tab-discard. Compared with extensions that swap in internal placeholder pages, the native approach delegates storage and crash recovery to the browser.
On Firefox, multiprocess support is required for correct operation when remote tabs are disabled in about:config. Tooltips on the action button explain when a tab is skipped due to user conditions.
Key features
- Automatic inactive tab discarding
- Native chrome.tabs.discard API
- Manual discard controls
- Hostname exception list
- Skip rules for media and forms
- Pinned tab protection options
- Power and idle gating conditions
Use cases
- Lowering RAM use with many tabs open
- Stopping background scripts on old tabs
- Keeping tab restore after memory trim
- Excluding work sites from discarding