document.write(`
`); jQuery(document).ready(function() { var ua = navigator.userAgent; var re = new RegExp('MSIE ([0-9]{1,}[\.0-9]{0,})'); var played_1c1224471e0875d2ecfa958af6d694db = false; const targetNode = document.getElementById('green-player-1c1224471e0875d2ecfa958af6d694db'); 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_1c1224471e0875d2ecfa958af6d694db); if (!played_1c1224471e0875d2ecfa958af6d694db) { $.post('https://radio.montornes.cat/radios/30-aniversari-radio-montornes/2014/11/28/felicitacions-a-radio-montornes-pel-seu-30-aniversari', { play: true }); played_1c1224471e0875d2ecfa958af6d694db = true; } } } }; const observer = new MutationObserver(callback); observer.observe(targetNode, observerConf); });