document.addEventListener('DOMContentLoaded', function () {
const checkPlayer = setInterval(() => {
document.querySelectorAll('iframe[src*="youtube"]').forEach(iframe => {
if (iframe.dataset.ccFixed) return;
iframe.dataset.ccFixed = 'true';
iframe.contentWindow.postMessage(
JSON.stringify({ event: 'command', func: 'unloadModule', args: ['captions'] }),
'*'
);
});
}, 1000);
setTimeout(() => clearInterval(checkPlayer), 15000);
});