Extension for Zen Browser (based on Firefox) that allows you to force unload the current tab using a keyboard shortcut.
- Default shortcut:
Shift+Cmd+S(macOS) orShift+Ctrl+S(Windows/Linux) - Smart toggle:
- If tab is loaded → unloads the tab, freeing memory
- If tab is unloaded → reloads the tab
- Visual unload page: When a tab is unloaded, shows a beautiful page indicating it's unloaded
- Automatic reload: Click on the unloaded tab or use the shortcut again to reload
- Works only with tabs that can be discarded
- Open Zen Browser
- Navigate to
about:debugging - Click "This Firefox" (or equivalent)
- Click "Load Temporary Add-on..."
- Select the
manifest.jsonfile from this extension- Note: If you haven't created icons yet, you can use
manifest-no-icons.jsontemporarily
- Note: If you haven't created icons yet, you can use
-
Package the extension:
./build.sh
Or manually:
zip -r zen-unload-tab.zip manifest.json background.js unloaded.html unloaded.js README.md icons/
-
In Zen Browser, go to
about:addons -
Click the gear icon and select "Install Add-on From File..."
-
Select the
zen-unload-tab-*.zipfile
The shortcut can be customized:
- Go to
about:addons - Find "Zen Unload Tab"
- Click "..." → "Manage Extension Shortcuts"
- Configure the desired shortcut for the "unload-tab" command
The default shortcut Shift+Cmd+S avoids conflicts with the default "Save" shortcut (Cmd+S).
- Uses Firefox/WebExtensions
tabs.discard()API - Only tabs with
autoDiscardable: truecan be discarded - Original URL is saved in
browser.storage.localwhen tab is unloaded - When an unloaded tab is activated, shows a custom HTML page (
unloaded.html) - Tab only reloads when you click on it or use the shortcut again
- Original tab title is preserved in the tab bar
This extension is compatible with:
- Zen Browser
- Firefox (all versions that support WebExtensions)
MIT