GitHub - timgioh/Tab-Shield-Saver-Protect-Stash-Tabs: Protect active tabs from accidental closes and stash entire browser sessions with one click. 100% local and private. Β· GitHub
/" data-turbo-transient="true" />
Skip to content
Search/
Sign in<br>Sign upAppearance settings
You signed in with another tab or window. Reload to refresh your session.<br>You signed out in another tab or window. Reload to refresh your session.<br>You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
{{ message }}
timgioh
Tab-Shield-Saver-Protect-Stash-Tabs
Public
Notifications<br>You must be signed in to change notification settings
Fork
Star
main
BranchesTags
Go to file
CodeOpen more actions menu
Latest commit
History<br>5 Commits<br>5 Commits
Folders and files<br>NameNameLast commit message<br>Last commit date<br>tab-stash-shield
tab-stash-shield
README.md
README.md
View all files
Repository files navigation
π‘οΈ Tab Shield & Saver
Protect active tabs from accidental closes and stash entire browser sessions with one click.
A lightweight Chrome extension for people who live in too many tabs. It keeps important pages from vanishing by accident β and parks a whole window of work when you need a clean slate.<br>No servers. No accounts. No tracking. Everything stays in your browser.
β¨ What it solves
Closing the wrong tab (or the whole window) is a tiny click with a big cost: lost research, a forgotten checkout, a half-written form.<br>Tab Shield & Saver does two jobs:
Shield β lock the current tab. If it gets closed, the service worker reopens it automatically. If the entire window disappears, the URL is saved to a local backup instead of being lost.
Stash β save every restorable tab in the current window as a named session, then close them in one click. Restore later, inspect individual URLs, or delete what you no longer need.
π Features
π‘οΈ Shield Mode β Protect the active tab. Accidental closes trigger an automatic reopen plus a desktop notification.
πΎ Protected Links Backup β If a window is closed, protected URLs are stored locally. Restore them later from a banner in the popup.
π¦ One-Click Stash β Park all tabs in the current window as a session (title + url + timestamp) and start fresh.
π Expandable Sessions β Inspect every saved link with favicons, open a single tab, or remove one URL with Γ.
βοΈ Rename Sessions β Click a session title to give it a custom name. Stored in chrome.storage.local.
ποΈ Safe Delete β Deleting a session asks for confirmation first.
π Dark / Light Mode β Toggle in the header. Your theme preference persists across popup opens.
π 100% local β Data never leaves your machine. Permissions used: tabs, storage, activeTab, notifications.
π₯ Installation
Coming soon to the Chrome Web Store . Until then, you can load it locally in under a minute:
Clone this repository or download the tab-stash-shield folder.
Open Chrome and go to chrome://extensions.
Turn on Developer mode (top right).
Click Load unpacked .
Select the project folder.<br>The icon appears in the toolbar. Click it to open the popup.
After pulling updates, hit Reload on the extension card in chrome://extensions.
π οΈ Technologies
Layer<br>Stack
Extension<br>Chrome Manifest V3
UI<br>HTML5, modern CSS variables , vanilla JavaScript (no build step)
Background<br>Service worker (background.js)
Chrome APIs<br>chrome.tabs (onRemoved, onUpdated, create, query) Β· chrome.windows (onRemoved) Β· chrome.storage.local Β· chrome.notifications
Privacy<br>All state lives in chrome.storage.local β protected tabs, session stash, theme, backup list
tab-stash-shield/ βββ manifest.json # MV3 config & permissions βββ popup.html # Popup UI βββ styles.css # Dark / light theming βββ popup.js # Shield, stash, sessions, theme βββ background.js # Reopen + window-close backup βββ icons/ # 16 / 48 / 128 βββ README.md
Author
Created by Konstantin (@konstantinsio)
Built with Cursor. Contributions and ideas are welcome.
About<br>Protect active tabs from accidental closes and stash entire browser sessions with one click. 100% local and private.<br>Resources<br>Readme<br>Activity<br>Stars<br>0 stars<br>Watchers<br>0 watching<br>Forks<br>0 forks<br>Report repository
Releases
Packages
Contributors
Languages
You canβt perform that action at this time.