cript' id='cmplz-cookiebanner-js-after'> function cmplz_maybe_trigger_yotuwp(){ //if not defined, wait a bit if (typeof yotuwp === 'undefined') { setTimeout(cmplz_maybe_trigger_yotuwp, 500); } else { yotuwp.init(); } } document.addEventListener("cmplz_enable_category", function(consentData) { var category = consentData.detail.category; var service = consentData.detail.service; let selectorVideo = '.cmplz-yotu-playlist'; if (category!=='marketing' && service !== 'youtube' ) { return; } dispatchEvent(new Event('load')); document.querySelectorAll(selectorVideo).forEach(obj => { obj.classList.remove('cmplz-yotu-playlist'); obj.classList.remove('cmplz-blocked-content-container'); obj.classList.add('yotu-playlist'); let index = obj.getAttribute('data-placeholder_class_index'); obj.classList.remove('cmplz-placeholder-'+index); cmplz_maybe_trigger_yotuwp(); }); });