Never lose your form data again.
Universal Web Undo is a local-first, privacy-focused Chrome Extension that automatically saves text input state as you type. If you accidentally refresh, close a tab, or navigate away, it offers a simple "Restore" banner to recover your work.
- Local & Safe: ALL data is stored locally on your device (
chrome.storage.local). No data is ever sent to the cloud. - Privacy First: Automatically ignores password fields and sensitive data (Credit Cards, SSNs).
- Zero-Config: Works instantly on any website.
- framework Support: Works handling modern SPAs (Single Page Apps) like YouTube, GitHub, and React/Vue apps.
- Shadow DOM Support: Handles complex isolated DOM structures.
- Keyboard Shortcut: Press
Alt+Z(Option+Z on Mac) to manually trigger the restore check.
- Clone or download this repository.
- Open Chrome and navigate to
chrome://extensions. - Enable Developer mode (toggle in the top right).
- Click Load unpacked.
- Select the
Extensionfolder.
- Type on any web form.
- If you navigate away or refresh, look for the Restore Banner at the bottom right.
- Click Restore to populate your fields.
- Dismiss the banner to clear the saved state for that page.
- Use Alt+Z / Option+Z to bring up the banner manually if needed.
Built with Manifest V3.
src/content.js: Handles event capture (debounced), input restoration, and framework hacks (Reactvaluesetter override).src/storage.js: Manages local persistence with LRU eviction (Max 50 forms) and 7-day TTL.src/ui.js: Injects a Shadow DOM banner to ensure styles don't conflict with the page.src/utils.js: Helpers for stable ID generation and recursive Shadow DOM search.
MIT