Google Shut Up!

Remove annoying cookies popup on google and youtube login popup on youtube! Thanks to him https://github.com/uBlockOrigin/uAssets/issues/7842#issuecomment-694298400

< Commentaires sur Google Shut Up!

Avis: OK - le script fonctionne, mais souffre de quelques problèmes

§
Posté le: 12/10/2020

Works well on youtube but on any other site with youtube videos the browser shows in the status bar endless calls to youtube and the tampermonkey's icon flashes each time. Is there a way to stop that?

§
Posté le: 02/02/2021

Small fix - adding this function

function isEmbedded(){
return document.URL.match(/\/embed\//i) !== null;
}

and then modyfing

window.addEventListener('locationchange', function(){
if(!cookieIsSet())

to

window.addEventListener('locationchange', function(){
if(!cookieIsSet() && !isEmbedded)

should fix the problem of embedded videos being refreshed constantly as the script is in fact unable to set the cookie and thus such endless loop occurs.

wiejowAuteur
§
Posté le: 12/02/2021
function isEmbedded(){
return document.URL.match(/\/embed\//i) !== null;
}

Thanks!!!

Poster une réponse

Connectez-vous pour poster une réponse.