User:DelimanCZ/common.js

console.log("Why are we still here? Just to suffer?");

// Minecraft Wiki favicon $('head').append('');

// Content

/* $('.main-container').before('  Gamepedia Help     Sign In Register   '); */

// $('.fandom-community-header').after('Nav');

// Footer $('.license-description').remove; $('.page__main').after('  This page was last edited on 01 January 1993, at 00:06.Content is available under <a class="external" rel="nofollow" href="https://creativecommons.org/licenses/by-nc-sa/3.0/">CC BY-NC-SA 3.0</a> unless otherwise noted. Minecraft content and materials are trademarks and copyrights of Mojang and its licensors. All rights reserved. This site is a part of Curse, Inc. and is not affiliated with Mojang. </li></ul><ul id="footer-places"><a href="https://minecraft.gamepedia.com/Minecraft_Wiki:About" title="Minecraft Wiki:About">About Minecraft Wiki</a></li><a href="https://minecraft.gamepedia.com/Minecraft_Wiki:General_disclaimer" title="Minecraft Wiki:General disclaimer">Disclaimers</a></li><a href="https://minecraft.gamepedia.com/index.php?title=Minecraft_Wiki&amp;mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li></ul><ul id="footer-icons" class="noprint"><a href="//web.archive.org/web/20180418000643/https://creativecommons.org/licenses/by-nc-sa/3.0/" target="_self"><img src="//web.archive.org/web/20180418000643im_/https://i.creativecommons.org/l/by-nc-sa/3.0/88x31.png" alt="CC BY-NC-SA 3.0" width="88" height="31"></a></li><a href="//web.archive.org/web/20180418000643/https://www.mediawiki.org/" target="_self"><img src="https://web.archive.org//web/20180418000643im_/https://minecraft.gamepedia.com/resources/assets/poweredby_mediawiki_88x31.png" alt="Powered by MediaWiki" srcset="/web/20180418000643im_/https://minecraft.gamepedia.com/resources/assets/poweredby_mediawiki_132x47.png 1.5x, /web/20180418000643im_/https://minecraft.gamepedia.com/resources/assets/poweredby_mediawiki_176x62.png 2x" width="88" height="31"></a><a href="https://web.archive.org/web/20180418000643/https://help.gamepedia.com/What_is_Hydra" target="_self"><img src="https://web.archive.org/web/20180418000643im_/https://minecraft.gamepedia.com/skins/Hydra/images/icons/poweredbyhydra.png" alt="Powered by Hydra" width="88" height="31"></a></li></ul>  ');

$('footer').remove;

// Rescale images to original default var imgs = document/*.getElementsByClassName('page__main')[0]*/.getElementsByTagName('img');

for(i=0; i<imgs.length; i++){ if (imgs[i].width == 180) { imgs[i].width = 300; imgs[i].style.height = 'auto'; imgs[i].style.imageRendering = 'pixelated'; }	//alert(imgs[i].width); console.log("ahoj"); } var imgsFigure = document.getElementsByClassName('thumb'); for(i=0; i<imgsFigure.length; i++){ if (imgsFigure[i].style.width == 180) { imgsFigure[i].style.width = 300; } }

$(function(test) {/*	var imgs = document.querySelector('img');	imgs.src = "//web.archive.org/web/20180418000643im_/https://i.creativecommons.org/l/by-nc-sa/3.0/88x31.png";	var img = document.images;	img.src = "//web.archive.org/web/20180418000643im_/https://i.creativecommons.org/l/by-nc-sa/3.0/88x31.png";	*/	var de = document.getElementsByTagName('img')[0];	var me = document.getElementsByTagName('img')[1];	de.src = me.src;	de.style.display = 'none';	console.log(img); });