Skip to content

Getting rid of the Google cookie consent popup


If you clear your browser cookies regularly (as you should do), Google will annoy you with a full screen cookie consent overlay these days. And - of course - there is no "no tracking consent, technically required cookies only" button. You may log in to Google to set your preference. Yeah, I'm sure this is totally following the intent of the EU Directive 2009/136/EC (the "cookie law").

Google cookie consent pop-up

Unfortunately none of the big "anti-annoyances" filter lists seem to have picked that one up yet but the friendly folks from the Computerbase Forum [German] to the rescue. User "Sepp Depp" has created the following filter set that WFM:

Add this to your uBlock Origin "My filters" tab:

! Google - remove cookie-consent-popup and restore scroll functionality
google.*##html:style(overflow: visible !important;)

Trackbacks on : PingBack

Unfortunately, the contents of this trackback can not be displayed. on : PingBack

Unfortunately, the contents of this trackback can not be displayed.


Display comments as Linear | Threaded

Paul D Shaffer on :

"If you clear your browser cookies regularly (as you should do)," How regularly, and why? Maybe it's to practice remembering passwords?

Daniel Lange on :

The easiest way is to tell Mozilla Firefox or Google Chromium to delete all cookies on browser exit. There are settings for that a bit hidden in the "Advanced settings" section.

On common mobile browsers you need to clear the cookies manually every now and then.

The rationale is that

  • you are automatically logged out of any web application you are using. That way your cookie jar cannot be used to impersonate you, e.g. when your laptop is finding a new - eh - owner.
  • you make tracking yourself online harder for advertisers
  • you limit tracking by Google, Facebook, Amazon etc. to when you are actively using their services (i.e. limit tracking on third-party websites that you happen to have used before or after using a Facebook service)

There are - of course - other ways to track you ("browser fingerprinting" is the technical term) but those are much harder to do than just collecting cookies and related website pings. You can check your browser at made by the Electronic Frontier Foundation (EFF).

Peter Smith on :


Maybe it should be clarified that this goes to "My filters", not "My rules", since "Add this to your uBlock Origin filter rules" is ambiguous.

Daniel Lange on :

Thanks! I changed 'filter rules' to '"My filters" tab' as per your suggestion.

Fazal Majid on :

I have Vivaldi configured to block cookies by default and I only whitelist domains for cookies on an absolutely needed basis (most annoying popups can be dealt with by disabling JavaScript for the website in uBlock). Needless to say, Google anything is banned. Despite this, I don't get the annoying popup. I suspect it may be because my browser also sends DNT: 1

Daniel Lange on :

Even with the do-not-track header, I get the Google popup. I think blocking Javascript may be what helps you not get that annoying popup.

Daniel Lange on :

I think if we would get legislation that setting the DNT header means "technical cookies only, no consent form to ask for more outside your website account settings section" this thing would have a second life. And a first useful one. Aah, well, dreaming...

Jonathan on :

I leave those cookie warnings to remind me to update my browser’s default search engine away from google.

AnnoyedByConsentPrompts on :

Thanks for sharing! Couldn't get it properly working myself.

Safari User on :

Anyone have a solution for a Safari (12.1.2) user? Would really appreciate it!! Can't seem to download uBlock Origin :-(

Any other alternative userscript manager that Safari users could use to block this annoying "Before you continue" cookies popup?

Safari User on :

Anyone?? Any recommendations for a Safari user?

Daniel Lange on :

  1. Don't be annoying, this is not a support forum.
  2. Use Firefox or Chromium until Safari learns to block this mess.

Paul on :

I don't think the op was being annoying, they were just looking for a response.

Also there's a specific extension everyone can use for chrome and Firefox to successfully block this pop-up, and it works better than adding a filter, which may not even work/be coded correctly, in uBlock Origin.


xChris on :

Cheers mate!!!!! epic

Frank on :

Unfortunately this doesn't seem to work on youtube. With the filters the search field is inaccessible.

Daniel Lange on :

Can't confirm that. Typing in "test" leads me to a YT login nag screen (which I can deny) and then redirects to which works.

Ford Prefect on :

Linux, Vivaldi, uMatrix, uBlock Origin

Unfortunately this DOES NOT work for neither google.* sites nor youtube.*.

DNT is enabled in browser; tracker and ads also set to be blocked within browser (not using services making use of google). I don't log into Alphabet services and whenever possible don't even allow ANY of their cookies + I sanitize my cache et al by wiping it clean if I had had to allow one of their cookies.

YT is the only Alphabet product that I'd like to be able to continue to use, they can keep all the rest, but this pop up expletive might actually have the potential to also say "no, thanks" to YT.

Phillip Morris on :

I'm using these filters on youtube:

And these other filters on google (less restrictive as the OP but doing the same): visible !important;)

YT Block is good too on :

Plus one to this. Could you add it you your article Daniel.

Thank you and Just (for YT)

Jims Beam on :

Hi and thanks for the snippet!

however, when I copy paste that snippet to "my rules" in uBO, and click "save", the entry disappears from "temporary rules" and I cant click "commit" to permanently have them added to my rules. What is going wrong here? Thanks for any advice!

Daniel Lange on :

It needs to go into the "Filters" not the "Rules" tab.

Jonathan on :

This post keeps getting bumped up the Planet Debian feed aggregator list, perhaps as you keep editing it? If you could fix your feed to preserve the original publication date that’d be great. Thanks!

Daniel Lange on :

Serendipity keeps the publication date but it records when the post was last updated and seems to bump on the "updated" date.

   published: 2020-09-18T09:15:00Z
   updated: 2020-09-24T11:01:42Z

are the dates that the Atom feed currently publishes. Apparently Planet Debian sorts by the update dates.

With Guillem's help (thanks!) Serendipity seems to update the "updated" field when people add a new comment.

So I'll ask upstream to change that, doesn't seem sensible.
Reported upstream at .

Otherwise I can try to feed Debian Planet the RSS feed that only contains the "pubDate" item.

Rafael on :

Working perfect on FF, thank you.

Add Comment

Markdown format allowed
Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.

Form options

Submitted comments will be subject to moderation before being displayed.