for(var h3Elems=document.getElementsByTagName("h3"),i=0;i<h3Elems.length;i++){var linkElem=h3Elems[i].getElementsByTagName("a")[0],linkText=linkElem.innerHTML,imgElem=linkElem.getElementsByTagName("img")[0],imgSrc=imgElem.getAttribute("src");h3Elems[i].removeChild(linkElem);var newElem=document.createElement("span");newElem.innerHTML=linkText,newElem.appendChild(imgElem.cloneNode(!0)),h3Elems[i].appendChild(newElem)}const searchForm=document.querySelector(".search-plugins"),hellopackForm=document.querySelector("#hellopack-search-form");searchForm.parentNode.replaceChild(hellopackForm,searchForm);const links=document.querySelectorAll("a[data-slug]");links.forEach(link=>{const originalSlug=link.getAttribute("data-slug"),newSlug=`hellopack-${originalSlug}`;link.setAttribute("data-slug",newSlug);const divs=document.querySelectorAll(`div.plugin-card.plugin-card-${originalSlug}`);divs.forEach(div=>{div.classList.remove(`plugin-card-${originalSlug}`),div.classList.add(`plugin-card-${newSlug}`)})});