From 913c86502b3ec2715766f440f4dd81834e4c240d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Shadowsun=E2=84=A2?= <12494967+CattoGamer@users.noreply.github.com> Date: Tue, 29 Oct 2024 01:00:48 +0100 Subject: [PATCH] click consent button on Dailymotion player --- .../gamemode/modules/theater/services/sh_dailymotion.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/workshop/gamemodes/cinema_modded/gamemode/modules/theater/services/sh_dailymotion.lua b/workshop/gamemodes/cinema_modded/gamemode/modules/theater/services/sh_dailymotion.lua index 455349d..3d2104e 100644 --- a/workshop/gamemodes/cinema_modded/gamemode/modules/theater/services/sh_dailymotion.lua +++ b/workshop/gamemodes/cinema_modded/gamemode/modules/theater/services/sh_dailymotion.lua @@ -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) {