User:Penguin-Pal/wikia.js/wikinav.js

/* customize wiki navigation */ $(document).ready(function {		// videos	$("#WikiHeader nav ul.firstChild .subnav-2-item:contains(Videos)").html('\n\ Videos\n\ \n\ \n\ Recent\n\ \n\ \n\ Most Popular\n\ \n\ \n\ Trending\n\ \n\ <li class="subnav-3-item">\n\ Source: Wikia Library</a>\n\ </li>\n\ </ul>\n\ ');		// images	$("#WikiHeader nav ul.firstChild .subnav-2-item:contains(Photos)").html('\n\ Photos<img src="data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D" class="chevron"></a>\n\ <ul class="subnav-3 subnav" style="top: 28px; display: none;">\n\ <li class="subnav-3-item">\n\ Upload</a>\n\ </li>\n\ <li class="subnav-3-item">\n\ Multiple Upload</a>\n\ </li>\n\ <li class="subnav-3-item">\n\ File List</a>\n\ </li>\n\ <li class="subnav-3-item">\n\ Upload log</a>\n\ </li>\n\ <li class="subnav-3-item">\n\ File Changes</a>\n\ </li>\n\ </ul>\n\ ');		// hide when unused	mw.util.addCSS('\ .subnav-2-item:not(.marked2) > ul {\ display: none !important;\ }');		// fix display	$(document).ready(function { $("header#WikiHeader .subnav-2.accent.firstChild > li:first-child").mouseenter; setTimeout(function {			$("header#WikiHeader .subnav-2.accent.firstChild > li:first-child").mouseenter.mouseleave;		},500); }); });