Before it was possible to use Google with cookies disabled, or with extension Cookie-AutoDelete or something similar.

For some weeks, this is gone. After each cookie deletion, I receive a popup that I have to "Accept".

Before you continue

Google uses cookies and other data to deliver, maintain, and improve our services and ads. If you agree, we’ll personalize the content and ads you see based on your activity on Google services like Search, Maps, and YouTube. We also have partners that measure how our services are used. Click “See more” to review your options or visit g.co/privacytools anytime.

[I agree]

This means that we are basically forced to accept the all-mighty google cookie.

This is similar to the "Sign-in to youtube" popup problem

How to avoid the "Before you continue" popup while keeping short-lived throwable Google cookies?

Note: Google Consent Dialog Remover exists but does not work anymore.

4 Answers 4


Add the following JavaScript to your browser through an extension (like Tampermonkey for Chrome, or Firefox):

// ==UserScript==
// @name         avoid Google's "before you continue"
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  How to block the annoying “Before you continue” popup on Google?
// @author       jonas
// @url          https://stackoverflow.com/a/63999294/1153476
// @match        https://www.google.com/*
// @grant        none
// @run-at       document-start
// ==/UserScript==

// This will remove the popup but there are some problems:
// Buttons and menus like 'More', 'Tools', and many others will not work
const style = document.createElement('style');
style.innerHTML = /* css */ `
  div[aria-modal] {
    display: none !important;

// This solves the previous problems but it's probably not that great for privacy
const consentMatch = document.cookie.match(/CONSENT=(PENDING|YES)\+(\d+)/);
document.cookie=`CONSENT=YES+${consentMatch ? consentMatch[2] : '0'}; domain=.google.com`;

In Tampermonkey, on script Settings page, set Run at to document-start.

  • A similar trick also works for getting around login walls on news sites; inspect the page to find out the overlay name and set overflow on html and body for missing scrollbars. I'm pointing this out here just as an opportunity to stick it to the man.
    – Jason C
    Feb 11, 2021 at 12:01
  • FYI, Google has changed something, this Tampermonkey userscript does not work anymore. Apr 2, 2021 at 4:42
  • 1
    I updated the script, it works now for consent in the modal.
    – Jonas
    Apr 5, 2021 at 19:32
  • This breaks the page: buttons, search suggestions, etc no longer work.
    – hawk
    Jan 7, 2023 at 13:38

Just block all of the cookies for the page where you see this popup and voilà.

Open the View site information pane

Block all of the cookies that you see there

  • Wow, that is really clever. This solution is enabling more privacy. I would upvote 10 times if i could
    – PythoNic
    Oct 5, 2020 at 20:08
  • 1
    For people using Firefox, right-click the page, click 'View Page Info', go to the Permissions tab, and find 'Set Cookies'. There you can uncheck 'Use Default', and check Block.
    – user886079
    Dec 13, 2020 at 14:09
  • 1
    This is great! Unfortunately, this doesn't prevent the "Sign in to Youtube" banner. Dec 31, 2020 at 1:34

In addition to the answer of Stepan, you can also add both domains (google.com and www.google.com) into the Google Group Policy settings. You find this setting under: Google-Google Chrome-Content Settings-Block cookies on these sites. This way you can push this company-wide. Also, when your users are using google.<countrycode>, also add these. That helps the local google site users.


It seems that the userscript posted here has stopped working so here's a simpler version that does the trick for me :)

Direct link to install with tampermonkey: https://gist.github.com/WoLpH/985a6072b35926eb4a3f9d2cdd0a2dad/raw/596925b09a38c1003cac97a3419db12e4b02f005/google-cookie-consent.user.js

If you have suggestions or questions: https://gist.github.com/WoLpH/985a6072b35926eb4a3f9d2cdd0a2dad

// ==UserScript==
// @name         Google Cookie Consent Remover
// @namespace    https://gist.github.com/WoLpH/985a6072b35926eb4a3f9d2cdd0a2dad
// @version      0.1
// @description  Remove Google's annoying cookie consent questions (especially annoying for Incognito windows)
// @author       Wolph
// @match        https://www.google.com/*
// @grant        none
// ==/UserScript==


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .