在可以在禁用 cookie 或扩展Cookie-AutoDelete或类似的情况下使用 Google 之前。
几个星期后,这已经消失了。每次删除 cookie 后,我都会收到一个必须“接受”的弹出窗口。
在继续之前
Google 使用 cookie 和其他数据来提供、维护和改进我们的服务和广告。如果您同意,我们将根据您在 Google 服务(例如搜索、地图和 YouTube)上的活动对您看到的内容和广告进行个性化设置。我们也有合作伙伴来衡量我们的服务是如何使用的。单击“查看更多”以查看您的选项或随时访问 g.co/privacytools。
[我同意]
这意味着我们基本上被迫接受全能的 google cookie。
如何在保持短暂的可抛出 Google cookie 的同时避免“在您继续之前”弹出窗口?
注意:Google Consent Dialog Remover存在但不再起作用。
通过扩展程序(如 Tampermonkey for Chrome或Firefox)将以下 JavaScript 添加到您的浏览器:
// ==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;
}
`;
document.head.append(style);
// 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`;
Run Code Online (Sandbox Code Playgroud)
在 Tampermonkey 中,在脚本Settings页面上,设置Run at为document-start.
| 归档时间: |
|
| 查看次数: |
31767 次 |
| 最近记录: |