Skip to content

madil786110/Universal-Web-Undo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Universal Web Undo

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.

Features

  • 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.

Installation

  1. Clone or download this repository.
  2. Open Chrome and navigate to chrome://extensions.
  3. Enable Developer mode (toggle in the top right).
  4. Click Load unpacked.
  5. Select the Extension folder.

Usage

  1. Type on any web form.
  2. If you navigate away or refresh, look for the Restore Banner at the bottom right.
  3. Click Restore to populate your fields.
  4. Dismiss the banner to clear the saved state for that page.
  5. Use Alt+Z / Option+Z to bring up the banner manually if needed.

Architecture

Built with Manifest V3.

  • src/content.js: Handles event capture (debounced), input restoration, and framework hacks (React value setter 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.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published