Fix cookie click script not working
This commit is contained in:
parent
3f8e106bf5
commit
558d071fdd
|
@ -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("*")));
|
||||
|
|
Loading…
Reference in New Issue
Block a user