document.write(`
`); jQuery(document).ready(function() { var ua = navigator.userAgent; var re = new RegExp('MSIE ([0-9]{1,}[\.0-9]{0,})'); var played_49ed8091b2bc9699c0e46a70720300db = false; const targetNode = document.getElementById('green-player-49ed8091b2bc9699c0e46a70720300db'); const observerConf = { attributes: true, childList: true, subtree: true }; const callback = function(mutationsList, observer) { // Use traditional 'for loops' for IE 11 for(const mutation of mutationsList) { if (mutation.type === 'attributes' && mutation.attributeName == 'aria-label') { console.log('The ' + mutation.attributeName + ' attribute was modified.'); console.log(played_49ed8091b2bc9699c0e46a70720300db); if (!played_49ed8091b2bc9699c0e46a70720300db) { $.post('https://radio.montornes.cat/radios/la-llanterna-magica/2024/04/12/la-llanterna-magica-15-anys-despres-de-john-hughes-l-etern-adolescent', { play: true }); played_49ed8091b2bc9699c0e46a70720300db = true; } } } }; const observer = new MutationObserver(callback); observer.observe(targetNode, observerConf); });