MediaWiki:SCP - Containment Breach.js

// Difficulty System Image Box ] // Provided by the Maple Clan (Juanjpro) function findSwappingImageBoxes { var elems = document.getElementsByClassName("swappingimagebox"); for(var i=0; i<elems.length; i++) { elems[i].id = "imgBox"+i; var newArea = document.createElement("map"); newArea.name = "mapImgBox"+i; elems[i].appendChild(newArea); var lastImg = null; var childrn = elems[i].childNodes; var scroll = 0; for (var k=0; k<childrn.length;k++) { if ((childrn[k].tagName || "").toLowerCase==="p") { childrn[k].style.margin = "0"; childrn[k].style.padding = "0"; var children = childrn[k].childNodes; for (var j=0; j"; }                 children[j].innerHTML = ""; }           }         }      }   } }

findSwappingImageBoxes;