Google-Consent-Cookie figuccio

accetta consent cookie ottobre 2023

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name           Google-Consent-Cookie figuccio
// @version        0.2
// @description    accetta consent cookie ottobre 2023
// @author         figuccio
// @namespace      https://greasyfork.org/users/237458
// @match          *://www.google.de/*
// @match          https://*.google.com/*
// @match          https://*.google.it/*
// @match          https://*.google.fr/*
// @match          https://*.google.es/*
// @icon           https://www.google.com/favicon.ico
// @run-at         document-start
// @license        MIT
// ==/UserScript==
//accetta consent traduttore
setTimeout(function(){document.querySelector("#yDmH0d > c-wiz > div > div > div > div.NIoIEf > div.G4njw > div.AIC7ge > div.CxJub > div.VtwTSb > form:nth-child(1) > div > div > button > div.VfPpkd-RLmnJb").click();},1000);
//cookie consent accetta cookie
if (!document.cookie.match("(^|;)\\s*CONSENT=YES\\+")) {
    document.cookie="CONSENT=YES+domain=.google.com;max-age=31536000";
    document.cookie="CONSENT=YES+domain=.google.it;max-age=31536000";
    document.cookie="CONSENT=YES+domain=.google.fr;max-age=31536000";//francia
    document.cookie="CONSENT=YES+domain=.google.es;max-age=31536000";//spagna
    document.cookie="CONSENT=YES+domain=.google.de;max-age=31536000";//tedesco
  location.reload();
}