accetta cookie facebook

finestra accetta cookie facebook ricarica la pagina dopo 2secondi

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

You will need to install an extension such as Tampermonkey to install this script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name           accetta cookie facebook
// @namespace      https://greasyfork.org/users/237458
// @version        0.9
// @description    finestra accetta cookie facebook ricarica la pagina dopo 2secondi
// @author         figuccio
// @namespace      https://greasyfork.org/users/237458
// @grant          GM_addStyle
// @grant          GM_setValue
// @grant          GM_getValue
// @match          https://*.facebook.com/*
// @icon           https://facebook.com/favicon.ico
// @license        MIT
// ==/UserScript==
document.cookie = "datr=7JceYLHE4muIe3TIZpm1aiuj; domain=.facebook.com;max-age=315360000";
   if(!localStorage.reload) {
       //correzione errore triangolo giallo
        setTimeout(function(){document.location.reload();}, 2000);
        localStorage.reload = 1;
    }
  //nuovo consent cookie al login facebook
//if (document.URL =="https://www.facebook.com/privacy/consent/user_cookie_choice/?source=pft_user_cookie_choice") window.location.href = "https://www.facebook.com/?sk=h_chr";

////////////////////////////////////
//accetta tutti cookie facebook
//GM_addStyle('div[data-cookiebanner="banner"],.hasCookieBanner #root ~ .accelerate,body[tabindex] > div > #viewport > div:first-child:not(#MChromeHeader),div[data-testid="cookie-policy-dialog"],div[data-testid="cookie-policy-manage-dialog"]{display:none !important}.uiLayer[data-testid="cookie-policy-banner"]{display:none !important}.hasCookieBanner > div{position:static !important}');