Documentation may be created at User:Bebiezaza/revertLogo.js/doc.
Note: After saving, you have to bypass your browser's cache to see the changes.
Google Chrome, Firefox, Microsoft Edge, and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button.
For details and instructions about other browsers, see Wikipedia:Bypass your cache.
/* ---------- Logo revert ---------- */
// Credits to [[User:DelimanCZ/common.js]]
var imgs = document.getElementsByTagName('img');
for(i=0; i<imgs.length; i++){
// Wiki logos revert
if (imgs[i].alt == "Minecraft Wiki") {
imgs[i].src = "https://web.archive.org/web/20160929132447im_/https://hydra-media.cursecdn.com/minecraft.gamepedia.com/b/bc/Wiki.png";
document.getElementsByClassName('fandom-community-header__image')[0].getElementsByTagName("img")[0].style.display = "block";
}
if (imgs[i].alt == "Minecraft Wiki header.svg") {
imgs[i].src = "https://web.archive.org/web/20140316024051im_/http://hydra-media.cursecdn.com/minecraft.gamepedia.com/thumb/9/90/Minecraft_Wiki_header.svg/300px-Minecraft_Wiki_header.svg.png";
imgs[i].style.width = "auto";
imgs[i].style.height = "auto";
}
}