Fix cookie click script not working

This commit is contained in:
Kuba Orlik 2022-08-25 17:03:19 +02:00
parent 3f8e106bf5
commit 558d071fdd

View File

@ -13,7 +13,7 @@ avoid = ["dostosuj", "don't", "nie zga", "nie zezw", "tylko"];
elements = Array.from(document.querySelectorAll("*"));
// Tik Tok hides the "accept" button within shadowRoot, so it we need to do some digging
/* Tik Tok hides the "accept" button within shadowRoot, so it we need to do some digging */
elements.forEach((element) => {
if (element.shadowRoot !== null) {
elements.push(...Array.from(element.shadowRoot.querySelectorAll("*")));