User:Maddy from Celeste/disinfobox.js

for (let ibx of document.getElementsByClassName('infobox')) { for (let img of ibx.querySelectorAll('.infobox-image')) { let thumb = document.createElement('div'); thumb.classList.add('thumb'); thumb.classList.add('tright'); let thumbinner = document.createElement('div'); thumbinner.classList.add('thumbinner'); thumb.appendChild(thumbinner); thumbinner.innerHTML = img.innerHTML; ibx.parentNode.insertBefore(thumb, ibx); }	ibx.parentNode.removeChild(ibx); }