Skip to content

Commit

Permalink
click consent button on Dailymotion player
Browse files Browse the repository at this point in the history
  • Loading branch information
CattoGamer committed Oct 29, 2024
1 parent 0302af4 commit 913c865
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ if (CLIENT) then
if (document.querySelector(".np_DialogConsent-accept")) {
document.querySelector(".np_DialogConsent-accept").click();
}
if (document.querySelector(".consent_screen-button.consent_screen-accept")) {
document.querySelector(".consent_screen-button.consent_screen-accept").click();
}
var player = document.querySelector("video#video");
if (!!player && player.paused == false && player.readyState == 4) {
Expand Down

0 comments on commit 913c865

Please sign in to comment.