It could be useful in this case - AdguardTeam/AdguardFilters#166126
Instead of allowing cookie notice and closing it, we could use dispatchEvent() to load video player.
Something like:
function dispatchCustomEvent(event, element) {
if (!event) {
return;
}
const ev = new CustomEvent(event);
const el = element ? document.querySelector(element) : document;
if (el) {
el.dispatchEvent(ev);
}
}
and then:
dispatchCustomEvent('consentGranted')
It could be useful in this case - AdguardTeam/AdguardFilters#166126
Instead of allowing cookie notice and closing it, we could use
dispatchEvent()to load video player.Something like:
and then: