Skip to content

Riotism/Cookie-AutoDelete

 
 

Repository files navigation

Build Status Coverage Status

Cookie-AutoDelete

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.

Main Features

  • Auto Deletes Cookies from Closed Tabs
  • WhiteList/GreyList Support for Cookies
  • Easily Export/Import your Whitelist
  • 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 in the WhiteList (permanently) or GreyList (until Browser restart)
  2. Enable "Active Mode" in the popup or settings
  3. Watch those unused cookies disappear :)

Other Versions

Chrome

Firefox

Contributing

Internationalization (i18n)

Translate Cookie AutoDelete in your language or help fix a translation!

  1. Copy and paste the /extension/_locales/en folder.
  2. Rename the newly copied folder to the language codes found here
  3. Open the messages.json in your newly created folder and start translating the "message" JSON properties. The description should be left alone as a reference. Also any word with '$' surrounding it should be left alone as they are placeholders.
  4. Test the translation under Testing. Fix any UI glitches by if possible using a shorter translation.
  5. Make a Pull Request and you're done!.
  6. Watch for changes in the /extension/_locales/en/messages.json file for future updates or if the updates somehow got lost use a diff tool.

Contributing Code

Requirements
  • Bash (cause there's some .sh scripts otherwise you can't do npm run build but can still do npm run dev)
  • Latest version of nodejs
Development
  • npm install - Installs all dependencies
  • npm run dev - This will run the webpack watcher and automatically pack /src/background.js 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) 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

About

Extension that deletes cookies as soon as the tab closes.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 82.0%
  • HTML 9.5%
  • CSS 8.5%