How to block the annoying “Before you continue” popup on Google?
Just block all of the cookies for the page where you see this popup and voilà.
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.1
// @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
// ==/UserScript==
const style = document.createElement('style');
style.innerHTML = /* css */ `
html {
overflow: auto !important;
}
.gTMtLb > div[class=""] {
display: none !important;
}
`;
document.head.append(style);
In Tampermonkey, in script Settings
page, you can set Run at
to document-start
, otherwise the popup will be visible for a brief moment.