{"id":20110513,"url":"https://github.com/otsmr/cookie-banner-blocker","last_synced_at":"2025-05-06T10:31:56.592Z","repository":{"id":105879123,"uuid":"332545100","full_name":"otsmr/cookie-banner-blocker","owner":"otsmr","description":"A cookie banner blocker that removes most cookie and newsletter popups without a blocklist.","archived":true,"fork":false,"pushed_at":"2023-04-06T11:45:28.000Z","size":3693,"stargazers_count":13,"open_issues_count":7,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-06T04:47:19.000Z","etag":null,"topics":["addons-mozilla-org","cookie","firefox"],"latest_commit_sha":null,"homepage":"https://addons.mozilla.org/de/firefox/addon/cookie-banner-blocker/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/otsmr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-24T20:09:57.000Z","updated_at":"2024-06-14T06:40:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"3e1230c1-b9f4-4284-917d-d6e3cd46298e","html_url":"https://github.com/otsmr/cookie-banner-blocker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otsmr%2Fcookie-banner-blocker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otsmr%2Fcookie-banner-blocker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otsmr%2Fcookie-banner-blocker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otsmr%2Fcookie-banner-blocker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/otsmr","download_url":"https://codeload.github.com/otsmr/cookie-banner-blocker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252666080,"owners_count":21785192,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["addons-mozilla-org","cookie","firefox"],"created_at":"2024-11-13T18:12:12.496Z","updated_at":"2025-05-06T10:31:56.570Z","avatar_url":"https://github.com/otsmr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Cookie Banner Blocker](https://addons.mozilla.org/de/firefox/addon/cookie-banner-blocker/)\n\nA cookie banner blocker that removes most cookie and newsletter pop-ups without a block list.   \nIt also detects so-called \"consent cookie banner pages\" that redirect to a separate consent page before opening the actual page. \n\n**I started the project out of frustation, because the cookie banners annoy me a lot. Since I use the addon in combination with uBlock Origin, I barely see cookie banners anymore, so the project is finished for me. You are welcome to develop the project further, by forking it.**\n\n[Firefox Addons](https://addons.mozilla.org/de/firefox/addon/cookie-banner-blocker/)\n\n\n![Video](docs/images/example.gif)\n\n\n## Goal of the project\nThere is already the possibility to block cookie banners via blocklists (among others also with the [uBlock Origin](https://github.com/gorhill/uBlock/)). However, this project aims to detect and hide \"new\" banners or redirect banners **without** a blocklist (without giving consent).\n\nUnfortunately, the detection is not perfect, so there is the possibility to deactivate the cookie banner blocker **with just one click for a single page**:  \n\n![disable-cookie-banner-blocker](https://user-images.githubusercontent.com/48922451/120222849-e7590b00-c240-11eb-914f-33d383aa85de.png)\n\n\n## How does the recognition work?\nI could identify three different categories of banners.\n\n### Simple cookie banners\nThese are usually located at the bottom of the page and are very annoying due to their intrusive colour. They can be recognised by the fact that they are fixed (position: fixed) and often have a high Z-index. Since this also applies to most navigations, additional searches are made for keywords (cookie :)).\n\n### Overlay-Banner\nThese particularly prominent banners blur the background and make the page unusable until accepted. These banners reveal themselves by the fact that they are fixed and have the same size as the actual page. If such an overlay is found, all elements with a higher Z-index are removed. In addition, a CSS rule is inserted that overrides the anti-scrolling rules of the page.\n\n### Redirect-Banner\nThis category of banners redirect the user to a separate \"consent cookie banner pages\". They are detected by keywords in the url and the fact that the previous url is usually contained in a GET parameter. The redirection is prevented by changing the user agent to a search engine user agent. After that, there is no need to give consent. After all, the pages still want to be crawled by Google and co.\n\n## Setup\n`npm i -g web-ext`\n\n\n## Credits\nI was inspired by this \u003ca href=\"https://github.com/jannisch/cookie-popup-blocker\"\u003eProject\u003c/a\u003e  \nThe icons are from \u003ca href=\"https://fontawesome.com/license\"\u003eFont Awesome\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotsmr%2Fcookie-banner-blocker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fotsmr%2Fcookie-banner-blocker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotsmr%2Fcookie-banner-blocker/lists"}