User:Random832/modern.js

addOnloadHook(function addLogo { var portlets = document.getElementById("mw_portlets"); var plogo = document.createElement("div"); plogo.className = "portlet"; var pbody = document.createElement("div"); pbody.className = "pBody"; pbody.style.textAlign='center'; var img = document.createElement("img"); img.src="http://upload.wikimedia.org/wikipedia/commons/" + "thumb/d/d6/Wikiquote-logo-en.svg/" + "100px-Wikiquote-logo-en.svg.png" var header = document.createElement("H5"); header.textContent = document.getElementById("siteSub").textContent; plogo.appendChild(header); plogo.appendChild(pbody); pbody.appendChild(img); portlets.insertBefore(plogo,document.getElementById("p-navigation")) });