Skip to content

Firefox and Chrome WebExtension that deletes cookies and other browsing site data as soon as the tab closes, domain changes, browser restarts, or a combination of those events. Modified to automatically form a Regex pattern for new entries.

License

Notifications You must be signed in to change notification settings

2art/Cookie-AutoDelete-Regex

 
 

Repository files navigation

Cookie AutoDelete Regex

(Cookie AutoDelete extension, with small modification that adds a regex URL match to possible greylist/whitelist selections.)

Control your cookies! This extension is inspired by Self-Destructing Cookies. When a tab closes, any cookies not being used are automatically deleted. Prevent tracking by other cookies and add only the ones you trust. Easily import and export your cookie whitelist.

AutoRegex Fork Information

This is a fork from the original project that adds one thing only: when whitelisting or greylisting a domain, the popup window offers a ready regex pattern that can be used instead of the domain name, since this addon supports regex patterns.

The reason for making this fork is mainly for myself as I want my expressions in regex, and I often have multiple domains in the same expression, which is only possible via regex. This way you can set a ruleset for multitude of domains in one rule.

Main features

  • Automatically deletes cookies from closed tabs
  • Whitelist/Greylist support for cookies
  • Easily export/import your configurations
  • Clear all cookies for a domain
  • Supports manual mode cleaning from the popup
  • Easily see the number of cookies for a site
  • Support for Container Tabs (Firefox 53+ only)

Usage

  1. Add the sites you want to keep cookies for to the whitelist (permanently) or greylist (until browser restart)
  2. Enable "Automatic Cleaning" in settings or "Auto-Clean" in popup
  3. Watch those unused cookies disappear :)

Installation

via Official Channels

  • [Google Chrome][link-cws]

    • [Chrome Lastest][link-cws] [Chrome Users][link-cws]
  • [Mozilla Firefox][link-amo]

    • [Firefox Latest][link-amo] [Firefox Users][link-amo]
  • [Microsoft Edge Chromium][link-edge]

    • Should have the exact same features as Google Chrome
    • [][link-edge]

via Self Installation

Please keep in mind that at this time only Mozilla Firefox and Google Chrome (as well as its development branches e.g. Developer Edition, Canary) will be supported.
Microsoft Edge Chromium will be considered partially official as it is using the same code as Google Chrome for now. While you may be able to install this extension on other browsers (i.e. Varations of Edge, Chrome, Firefox, Android), there will be no official support from the authors and maintainers through Github Discussions and/or Issues.

Contributing

Donations

Donations are done through Liberapay/PayPal. If this webextension has helped you in any way, we would appreciate a small donation to assist in our efforts to make this even better. Note that although Liberapay has recurring donation model, you can opt to 'manually' donate a one time amount as well.

Internationalization (i18n)

Translate Cookie AutoDelete in your language or help fix a translation on Crowdin! Some translations were taken from Machine Translations - if you believe there is a better translation for them, please submit an updated translation and raise an issue through CrowdIn.

Contributing code

If there are any bugs that only a certain browser has, and you have the fix for it, feel free to submit a PR for it, as long as it does not affect the functionality to other browsers. The easiest is to wrap your bugfix with check for that browser.

Requirements

  • Latest version of Node.js

Development

  • npm install - Installs all dependencies
  • npm run dev - This will run the webpack watcher and automatically pack /src/background.ts, popup, and setting items and its dependencies to /extension
  • npm run lint - Runs the eslinter for JS files
  • npm test - Runs the test suite located in /test
  • npm run build - Builds the Firefox (.xpi/.zip) and Chrome (.zip) builds

Testing

  1. Run npm install (if you haven't already)
  2. Run npm run dev
  3. Load the extension in the browser
  • Firefox

    • Easiest way would be to run the tool web-ext
    • Another way is go into about:debugging and load /extension/manifest.json
  • Chrome

    • In the extension tab, enable Developer Mode, then load unpacked extension and load the /extension folder

Building

  1. Run npm install (if you haven't already)
  2. Run npm run build
  3. The build files should be in a new folder called /builds

Documentation

Full documentation can be found in the wiki.

About

Firefox and Chrome WebExtension that deletes cookies and other browsing site data as soon as the tab closes, domain changes, browser restarts, or a combination of those events. Modified to automatically form a Regex pattern for new entries.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 91.4%
  • JavaScript 6.5%
  • CSS 1.5%
  • HTML 0.6%