A Chrome extension to automatically accept cookie consent banners so you can get back to browsing. Collects zero data.
Cookie icon designed by FreePik.
These annoying popups:
Rather than hardcoding rules for every website, Accept Cookies uses an algorithm:
- Searches the DOM and shadow DOMs for elements mentioning cookies.
- Searches for accept buttons with a common ancestor to the cookie elements.
- Calculates the distance between every accept button and cookie element pair.
- Clicks the accept button closest to a cookie element.
- 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.
- Clone/download this repo.
- Go to the Chrome Extensions page by entering chrome://extensions in a new tab.
- Enable Developer Mode by clicking the toggle switch next to it.
- Click the Load unpacked button.
- Select the downloaded repo directory.