Skip to content
/ cocoma Public
forked from andreafra/Cocoma

A Web Extension to automate opt-out (or opt-in) consent to cookies.

License

Notifications You must be signed in to change notification settings

bramus/cocoma

 
 

Repository files navigation

Logo Cocoma (Cookie Consent Manager)

A Web Extension to automate opt-out (or opt-in) consent to cookies.

This repository hosts the source code of Cocoma, a Cookie Consent Manager for:

  • Chromium-based browsers (Google Chrome, Edge...)
  • Firefox (soon unnecessary, as it will be a built-in feature)
  • Safari (iOS and macOS)

Under the hood it leverages Mozilla's Cookie Banner Rules List to handle known cookie banners.

Many cookie banners are hiding the "Reject All" button behind additional clicks, e.g.: "Preferences" (which is illegal in certain countries, due to new cookie policies). A limitation of the tool is that it cannot perform multiple clicks, and the default option is to Opt-Out.

If you decide to Opt-In by default, the extension will hide many more banners automatically.

Issues

If you have issues, you can open one here on this repository. Beware that adding support to other websites is not on me, as Cocoma depends on external lists.

Help

See the help page.

Why

Mostly because I wanted to experiment with Web Extensions and iOS/Safari, and I wasn't particularly busy.

Doesn't Hush do the same thing?

Technically not, as Hush is a content blocker that blocks/hides the cookie banners, while this extension mimics the new Firefox, which will actually click on the Opt-In/Accept All or Opt-Out/Reject All buttons, or alternatively will set known cookies to set your choice.

Develop

This project uses pnpm as a package manager, so use pnpm install to download all the dependencies.

To run it, you can see the available commands with pnpm run.

To build the extension, you need to use pnpm run build:chrome or pnpm run build:firefox.

You can build the safari extension by opening the Xcode project inside the /safari directory. You need to build the extension first (use the pnpm run build command), if you use pnpm run dev it won't work.

About

A Web Extension to automate opt-out (or opt-in) consent to cookies.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages

  • Swift 33.1%
  • JavaScript 29.1%
  • CSS 17.0%
  • Svelte 16.6%
  • TypeScript 3.0%
  • HTML 1.2%