Autopurge Cookies is a browser extension that helps users automatically purge all cookies upon closing the browser window, except for those belonging to whitelisted domains. This extension is designed to enhance user privacy by ensuring that browsing data is cleaned up while still allowing users to retain essential cookies for their trusted sites.
- Automatic Cookie Purge: Cleans up all cookies when you close your browser window.
- Whitelist Trusted Domains: Prevent specific domains from being purged by adding them to the whitelist.
- Easy to Use: Add or remove domains from the whitelist via the extension settings.
- Cross-Browser Support: Compatible with both Google Chrome and Mozilla Firefox.
Install AutoPurge-Cookies directly from the Firefox Extensions Gallery.
Not yet available on the Chrome Web Store. Install manually using the source files, available here.
- Click on the extension icon in the browser toolbar.
- In the popup, you'll see an option to manage your whitelist.
- To add a domain to the whitelist, simply enter the domain name (e.g., example.com) and click "Add".
- To remove a domain from the whitelist, click the close icon next to the domain name.
- Cookies from non-whitelisted domains will automatically be purged when you close your browser window.
- Cookies from whitelisted domains will remain intact.
- No Tracking: Autopurge Cookies does not track or collect any personal information about users.
- Local Data Storage: The extension only stores whitelisted domains locally in your browser's storage. It does not transmit any data externally.
- Cookies Aren't Purging: Make sure the extension is enabled, and that no domains you need to whitelist are accidentally included in the list.
- Extension Not Working After Update: Try restarting your browser or reinstalling the extension to ensure it's working properly.
To start development:
- Run
npm run start:dev
to start the development mode with a file watcher that automatically rebuilds artifacts for all supported browsers in real-time. - You can find the build artifacts in the
dist/
directory, organized by browser type.
When implementing new features or fixing issues, be mindful of browser differences. We maintain a unified codebase for both Chrome and Firefox to reduce duplication and ensure easier maintenance.
- Always branch out from the
dev
branch for feature development, improvements, or bug fixes. - The
main
branch contains the stable version and is protected. - All development work happens on the
dev
branch before being merged intomain
.
Versioning:
- When preparing a new release, update the version number in
manifest.json
on thedev
branch. - Create a pull request from
dev
tomain
, using the title format asv{major}.{minor}.{patch}
Building & Packaging:
- Run
npm run build
to generate packaged extensions for both browsers. - Generate distribution-ready zip files in
dist/
Releasing:
- Draft a new release on GitHub.
- Use the same version format (
v{major}.{minor}.{patch}
) for the release title and tag. - Upload the build artifacts (
dist/*
) to the release draft. - Add a changelog in the description.
- Publish the release.
Publishing to Browser Stores:
- Firefox Add-ons: Submit the build artifact to the Firefox Extension Library.
- Chrome Web Store: Not yet published, but planned for future releases.
Interested in contributing to AutoPurge Cookies? Follow these steps:
- Fork the repository and clone it locally.
- Create a feature branch from dev.
- Make your changes and test across both browsers.
- Submit a pull request to merge into dev.
For major changes, open an issue first to discuss improvements.
This project is licensed under the MIT License.