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

< 腳本Google Shut Up!的回應

評論:普通 - 腳本能使用,但有一些問題

§
發表於:2020-10-12

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?

§
發表於:2021-02-02

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.

wiejow作者
§
發表於:2021-02-12
function isEmbedded(){
return document.URL.match(/\/embed\//i) !== null;
}

Thanks!!!

發表回覆

登入以回復

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址