This extension copies localStorage data from a source environment and writes it to a target environment under the same key, then reloads the target page.
This extension is available for both Chrome/Edge and Firefox browsers.
Click the settings (⚙️) button in the popup:
- Source Environment URL: The URL where you want to read localStorage from (e.g.,
https://dev.example.com) - Target Environment URL: The URL where you want to write localStorage to (e.g.,
http://localhost:3000) - optional, defaults tohttp://localhost:3000 - localStorage Key: The key to sync (e.g.,
access_token)
- Go to
chrome://extensions(oredge://extensions) - Enable "Developer mode"
- Click "Load unpacked" and select the
chrome/folder - Pin the extension
- Open Firefox and navigate to
about:debugging - Click "This Firefox" in the left sidebar
- Click "Load Temporary Add-on..."
- Navigate to the
firefox/folder and selectmanifest.json - The extension will load temporarily until you restart Firefox
Package the extension as an .xpi file or sign it with Mozilla and submit to Mozilla Add-ons for review and distribution.
- Open your source environment and ensure the data is in localStorage
- Open or ensure target environment is running
- Click the extension icon:
- It reads the data from source tab
- Writes it into target's localStorage with the same key
- Reloads target automatically
- Works with any localStorage key-value pair
- Supports any source and target URLs
- All settings are saved and persist across browser sessions
- Uses
chromeAPI - Manifest V3 with service worker
- Uses
browserAPI - Manifest includes
browser_specific_settingssection - Uses background scripts instead of service worker
- Requires Firefox 109 or later
- "No source tab open": Open your source environment URL in a browser tab
- "Data not found": Confirm the key exists in localStorage; verify in DevTools > Application > Local Storage
- Update source/target URLs in settings if needed
- "about:debugging" shows error: Ensure Firefox is version 109+
- Extension not loading: Check browser console (Ctrl+Shift+K) for errors
- Sync fails: Ensure both source and target tabs are open and URLs are correct