Skip to content

woyaojizhu8/AutoDeleteCookie

 
 

Repository files navigation

Latest Release Tests Latest Release Development Tests Dependencies Localization Coverage
Tagged Release Distribution Node.js CI Tests dependencies Status devDependencies Status Crowdin Coverage Status codecov

AutoDeleteCookie

This is a modified version of the Firefox extension Cookie AutoDelete (https://github.com/Cookie-AutoDelete/Cookie-AutoDelete). The only difference between the two extension is, AutoDeleteCookie will delete all cookies ,including cookies of other tabs or sites (Localstorage will also be deleted if you set including Localstorage as well) every time you close a tab, while the original Cookie AutoDelete will check if there is opened tabs belonging to the same domain as the closed tab before deleting cookies releted to the closed tab (Localstorage will also be deleted if you set including Localstorage as well).

这是一个Firefox扩展Cookie AutoDelete (https://github.com/Cookie-AutoDelete/Cookie-AutoDelete )的修改版。两者之间唯一的区别是,AutoDeleteCookie在你关闭任意一个标签页时都会删除当前所有cookie(包括其他标签页其他网站的,如果设置了包括Localstorage,也会删之),并不会像Cookie AutoDelete那样,检查其他标签页里还有没有打开着的跟这个关闭的标签页同一个网站的页面,如果没有,才删除这个标签页相关的cookie(如果设置了包括Localstorage,也会删之)。

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

  • 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

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 appreate 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

Extension that deletes cookies as soon as the tab closes.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 88.5%
  • JavaScript 8.4%
  • CSS 2.5%
  • HTML 0.6%