本文介绍了如何阻止Google上令人讨厌的“继续之前”弹出式窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在禁用Cookie或扩展名为


如何避免继续之前

注意:存在,但不再起作用。

解决方案

通过扩展名将以下JavaScript添加到您的浏览器中(例如 Chrome 或):

  // == UserScript == 
// @name避免使用googgle的在您继续之前
// @namespace http://tampermonkey.net/
// @version 0.1
// @description如何阻止Google上令人讨厌的在您继续之前弹出式窗口?
// @author jonas
// @url https://stackoverflow.com/a/63999294/1153476
// @match https://www.google.com/*
// @不授予
// == / UserScript ==


const style = document.createElement('style');

style.innerHTML = / * css * /`
html {
overflow:auto!important;
}

.gTMtLb> div [class =] {
display:none!important;
}
`;

document.head.append(style);

在Tampermonkey的脚本设置 页面中,可以设置运行至文档开始,否则将在短暂时间内显示弹出窗口。


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".

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.

解决方案

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

// ==UserScript==
// @name         avoid googgle'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 popup will be visible for a brief moment.

这篇关于如何阻止Google上令人讨厌的“继续之前”弹出式窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-31 04:55