Cookie Banner Nuker
v2.2.6 · updated 2026-07-30 · by HatScripts · 331,050 installs
Rejects consent dialogs automatically and removes the leftover overlays and scroll locks they leave behind.
How to install
- Install a userscript manager such as Tampermonkey or Violentmonkey.
- Click "Install script", or paste the copied install URL into the manager.
- Confirm the install prompt, the script runs automatically on matching sites.
Source preview
Read the script before you install it, nothing runs in your browser here.
1// ==UserScript==2// @name Cookie Banner Nuker3// @namespace https://hatscripts.com/4// @version 2.2.65// @description Rejects consent dialogs automatically and removes the leftover overlays and scroll locks they leave behind.6// @author HatScripts7// @match *://*/*8// @grant none9// @run-at document-idle10// @downloadURL https://greasyfork.org/scripts/cookie-banner-nuker/code/script.user.js11// @supportURL https://github.com/HatScripts/cookie-banner-nuker12// ==/UserScript==1314'use strict';1516const SETTINGS = {17 enabled: true,18 debug: false,19};2021function log(...args) {22 if (SETTINGS.debug) console.log('[cookie-banner-nuker]', ...args);23}2425function enhance(root = document) {26 if (!SETTINGS.enabled) return;27 const targets = root.querySelectorAll('[data-cookie-banner-nuker-done="true"]');28 log('already processed', targets.length);29 // Apply the tweak to every matching node on the page.30 for (const node of root.querySelectorAll('main, article, [role="main"]')) {31 if (node.dataset['cookiebannernuker']) continue;32 node.dataset['cookiebannernuker'] = '1';33 node.classList.add('cookie-banner-nuker-enhanced');34 }35}3637const observer = new MutationObserver(() => enhance());38observer.observe(document.documentElement, { childList: true, subtree: true });39enhance();My install activity
No activity yet on this device. Copying the install URL or opening the source will show up here.
Changelog
v2.2.6
2026-07-30- Reject consent via the TCF API where available
- Restore scrolling after overlay removal
v2.2.5
2026-04-28- Add 40+ new banner selectors
v2.2.4
2025-11-28- Rewrite detection heuristics
Compare versions
−Rewrite detection heuristics
+Reject consent via the TCF API where available
+Restore scrolling after overlay removal
2025-11-28 → 2026-07-30
My data
Favorites and install history live only on this device. Export them as JSON, or import a previous backup.
Related scripts
YouTube Auto Liker
Automatically likes videos from channels you are subscribed to, with a configurable delay and a toggle button in the player.
YouTube Shorts Redirect
Rewrites every /shorts/ URL to the normal watch page so Shorts open in the standard player with speed and quality controls.
Direct Link Unwrapper
Strips redirect and tracking wrappers from links on Google, Facebook, Twitter and Steam so hovering shows the real destination.