(function() { var css = ':root{--plyr-color-main:var(--colors--player-color)}.plyr{border-radius:8px!important}'; var style = document.createElement('style'); style.textContent = css; document.head.appendChild(style); function hasVideo() { return document.querySelector('video') !== null; } function disablePiP() { document.querySelectorAll('video').forEach(function(video) { video.disablePictureInPicture = true; }); } function loadAndRun() { if (!hasVideo()) return; disablePiP(); var s = document.createElement('script'); s.src = 'https://cdn.jsdelivr.net/npm/lazy-load-video@latest/dist/custom-video.js'; s.type = 'text/javascript'; document.head.appendChild(s); s.onload = function() { disablePiP(); }; } if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', loadAndRun); } else { loadAndRun(); } })();