(function() { let players = document.querySelectorAll( '.sp-embed-player[data-id="cZjQ2FV9D0k"],' + '.som-embed-player[data-id="cZjQ2FV9D0k"], ' + '.sp-embed-player:not([data-id]), ' + '.som-embed-player:not([data-id]), ' + '#som-player' ); for (let item of players) { playerWidth = item.clientWidth playerHeight = playerWidth / 0.5625 item.style.height = playerHeight + 'px'; } }());