Team:Czech Republic/Template:Scripts

window.onload = function removeEmpty() { var paragraphs = document.getElementsByTagName("p"); for (var i = 0, len = paragraphs.length; i < len; i++) { var elem = paragraphs[i]; if (elem.innerHTML == '

') { elem.parentNode.removeChild(elem); i--; len--; } } }