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