`; oldDivRedes.insertAdjacentElement(“afterend”, newDivRedes); } function criarFooter(){ var olFooter = document.querySelector(“#materia-especial > div.ol-footer”); var footerEspecial = document.createElement(“footer”); footerEspecial.classList.add(‘footer-especial’); footerEspecial.innerHTML = `
`; olFooter.insertAdjacentElement(“beforebegin”, footerEspecial); } function inserirAspas(){ var cite = document.querySelectorAll(“cite”); if(cites){ cite.forEach(function(cite){ var imgQuote = document.createElement(“img”); imgQuote.src = ” cite.insertAdjacentElement(“afterbegin”, imgQuote); }); } } window.onload = function (){ criarAssineEUser(); criarLinksRedes(); inserirAspas(); si(document.querySelector(“a[href=”
document.querySelector(“a[href=”
}
if(document.querySelector(“body#materia-especial a[href=”
document.querySelector(“body#materia-especial a[href=” = “Ananindeua”;
}
dest = document.getElementsByClassName(“article__highlights__title”)[0]; if(dest){ tit = document.getElementsByClassName(“article__headline”)[0]; tit.appendChild(dest); } auteur = document.getElementsByClassName(“auteur”)[0]; dpub = document.getElementsByClassName(“byline”)[0]; auteur.appendChild(dpub); //place l’image sélectionnée en tant que BG dans sa taille d’origine imgori = document.getElementsByClassName(“image-replace”)[0].src; imgbg = imgori.substring(0, imgori.indexOf(“?”)) document.querySelector(“.ol-article-header .image .fullwidth .img-container”).style.backgroundImage = “url(” + imgbg + “)” } } }