https://github.com/dnmfarrell/chrome-accept-cookies
A Chrome extension to automatically accept cookie consent banners so you can get back to browsing. Collects zero data.
https://github.com/dnmfarrell/chrome-accept-cookies
chrome-extension cookie-consent cookie-policy
Last synced: 4 months ago
JSON representation
A Chrome extension to automatically accept cookie consent banners so you can get back to browsing. Collects zero data.
- Host: GitHub
- URL: https://github.com/dnmfarrell/chrome-accept-cookies
- Owner: dnmfarrell
- License: mit
- Created: 2024-11-13T13:21:19.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-11-24T15:48:41.000Z (8 months ago)
- Last Synced: 2025-01-16T16:48:55.858Z (6 months ago)
- Topics: chrome-extension, cookie-consent, cookie-policy
- Language: JavaScript
- Homepage:
- Size: 438 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Accept Cookies
==============
A Chrome extension to automatically accept cookie consent banners so you can get back to browsing. Collects zero data.
Cookie icon designed by FreePik.
What's a cookie consent banner?
--------------------------------
These annoying popups:
How it works
-----------
Rather than hardcoding rules for every website, Accept Cookies uses an algorithm:1. Searches the DOM and shadow DOMs for elements mentioning cookies.
2. Searches for accept buttons with a common ancestor to the cookie elements.
3. Calculates the distance between every accept button and cookie element pair.
4. Clicks the accept button closest to a cookie element.Technical details
-----------------
- Uses mutation observers to efficiently react to DOM changes.
- Overrides `Element.attachShadow` to search shadow DOMs.
- Uses a service worker with `chrome.webNavigation.onCommitted.addListener` to override `.attachShadow` before inline code runs.
- Runs in all frames so cookie consent banners loaded in iFrames are detected.Installation
------------
1. Clone/download this repo.
2. Go to the Chrome Extensions page by entering chrome://extensions in a new tab.
3. Enable Developer Mode by clicking the toggle switch next to it.
4. Click the Load unpacked button.
5. Select the downloaded repo directory.See also
--------
[I Still Don't Care About Cookies](https://github.com/OhMyGuus/I-Still-Dont-Care-About-Cookies).