User:Bebiezaza/revertLogo.js

/* -- Logo revert -- */ // Credits to User:DelimanCZ/common.js // Minecraft Wiki favicon $('head').append('');

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://static.wikia.nocookie.net/minecraft_gamepedia/images/b/bc/Wiki.png/revision/20211011173731"; 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"; } }