A Chrome extension that helps you quickly clear various types of browser storage for the current tab. Super helpful for testing and debugging during development. Inspired by my constant need to clear local storage when working with GDPR compliance, consent management, and cookies.
- 🔄 One-click clearing of all storage types
- 🖱️ Right-click menu options to selectively clear:
- 📦 Local Storage
- 🔒 Session Storage
- 🍪 Cookies
- 💾 Browser Cache
- 🧹 All Storage Types
- Visit our Clear Local Storage extension page on the Chrome Web Store
- Click "Add to Chrome"
- Click "Add extension" in the popup
- Clone this repository:
git clone https://github.com/KevinOBytes/clearlocal-chrome.git cd clearlocal-chrome - Install dependencies:
npm install
- Generate the extension icons:
npm run convert-icons
- Load in Chrome:
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" using the toggle in the top right
- Click "Load unpacked" and select the extension directory
- Open Chrome and navigate to
- ⚡ Manifest V3
- 🌐 Chrome Extension APIs
- 💻 JavaScript
- 🧪 Jest for testing
- 🎨 SVG to PNG conversion utility
- Edit the source files as needed
- If you modify
utils/icon.svg, runnpm run convert-icons - Run tests to ensure nothing broke:
npm test - Test in Chrome by reloading the extension
# Run all tests
npm test
# Run tests in watch mode
npm run test:watchclearlocal-chrome/
├── icons/ # Generated extension icons
├── utils/
│ ├── icon.svg # Source icon file
│ └── convert-icons.js# Icon conversion utility
├── tests/
│ ├── background.test.js # Test suite for background script
│ └── setup.js # Test environment setup
├── background.js # Extension background script
├── manifest.json # Extension manifest
├── package.json # Project dependencies
├── .gitignore # Git ignore file
└── README.md # Documentation
- Fork the repository
- Create your feature branch (
git checkout -b feature/YourFeature) - Make your changes and add tests for them
- Ensure all tests pass (
npm test) - Commit your changes (
git commit -m 'Add some Feature') - Push to the branch (
git push origin feature/YourFeature) - Open a Pull Request
- Wait for approval and merge
MIT License - see LICENSE for details
- Visit Chrome Web Store Developer Dashboard
- Pay registration fee ($5)
- Complete verification
npm run build- Generate optimized icons
- Create submission zip file
- Screenshots of extension in use
- Promotional tile images
- Detailed description
- Privacy policy
- Small tile (128x128)
- Large tile (440x280)
- Screenshots (1280x800 or 640x400)
- Detailed description
- Privacy policy
- Go to Chrome Web Store Developer Dashboard
- Click "New Item"
- Upload zip file
- Fill in store listing:
- Description
- Screenshots
- Promotional images
- Category (Productivity)
- Language
- Submit for review
Made with ❤️ by KevinOBytes