A simple and powerful browser extension for developers that automatically sets localStorage values or creates URL redirects for specified websites. Stop manually setting flags in dev tools and automate your testing and development workflow!
- Set-and-Forget Rules: Create rules that automatically run every time you visit a matching page.
- Two Core Actions: Set items in LocalStorage or set up URL Redirects.
- Flexible Matching:
- LocalStorage: Use wildcards (
*) to target domains and paths (e.g.,https://*.myapp.com/admin/*). - Redirects: Use exact URLs for precise, reliable navigation changes.
- LocalStorage: Use wildcards (
- Rule Groups: Organize rules with optional group labels. Groups are collapsible in the UI.
- Import/Export: Back up all your rules as JSON or share them across machines.
- Search & Filter: Quickly find rules by pattern, key, value, or group name.
- Smart Suggestions: Auto-populate new rules by pulling existing keys and values from the current page's localStorage.
- Matched Rule Counter: The extension icon shows a badge with the count of active rules matching the current page.
- Cross-Browser: Works on Chrome, Edge, and Firefox.
- Privacy-Focused: No data is ever collected or sent anywhere. All rules are stored locally in your browser.
- Testing Preview Features: Use a localStorage rule with a wildcard (
*.dev.site.com) to setadminModetotrueacross all development subdomains. - A/B Testing: Force your browser into a specific test group by setting a localStorage item.
- Simplifying URLs: Use a redirect rule to automatically go from a clean URL to the full URL with login parameters.
- Bypassing Login Pages: For local development, automatically redirect from
http://localhost:3000/logintohttp://localhost:3000/dashboard. - Dismissing Banners: Permanently dismiss annoying popups by setting the "dismissed" flag in localStorage on every visit.
https://chromewebstore.google.com/detail/autostash/epjbikleenhdegeihnmibapnmbandmij
https://addons.mozilla.org/de/firefox/addon/autostash/
-
Clone this repository:
git clone https://github.com/DarKnolo/Autostash.git cd Autostash npm install -
Build for your browser:
npm run build
This generates
dist/chrome/anddist/firefox/. -
Load the extension:
- Chrome/Edge: Go to
chrome://extensions→ Enable Developer mode → Load unpacked → Selectdist/chrome/ - Firefox: Go to
about:debugging#/runtime/this-firefox→ Load Temporary Add-on → Selectdist/firefox/manifest.json
For development you can also load the
autostash/directory directly in Chrome/Edge. - Chrome/Edge: Go to
- Click the extension icon in your browser toolbar to open the popup.
- Select the action:
LocalStorageorRedirects. - Fill in the fields:
- URL Pattern — For localStorage, supports wildcards (
*). For redirects, use the exact URL. - Key / Value — The localStorage key and value to set, or the redirect target URL.
- Group (optional) — A label to organize related rules together.
- URL Pattern — For localStorage, supports wildcards (
- Click "Add Rule".
- Your rules appear in the list below, grouped and categorized as Active, Enabled, or Disabled.
- Navigate to a matching URL — the extension automatically performs the action.
- Export: Click the download icon in the rules header to save all rules as a JSON file.
- Import: Click the upload icon to import rules from a previously exported JSON file.
Use the filter input above the rules list to search by pattern, key, value, or group name.
npm install
npm run build # Build for Chrome + Firefox
npm run test:unit # Fast unit tests (Vitest)
npm test # E2E tests (Playwright + Chromium)
npm run test:headed # E2E tests with visible browserContributions are welcome! If you have ideas for new features, improvements, or have found a bug, please feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.