User:452/global.js

$("#GlobalNavigation").remove; if (!$("#headerLinks").length) $("#WikiaHeader .start-a-wiki").after('Random WikiRecent Changes');

function toggleCSS { $('link[href*="oasis/site"]').attr( "disabled",function(idx, oldAttr){return !oldAttr;}); } function toggleUserCSS { $("link[rel='stylesheet'][href*="+wgUserName+"]").attr("disabled",function(idx,oldAttr){return!oldAttr;}); }

if (!$("#toggleCSS").length) $("#WikiaBarWrapper .toolbar .tools").append("Toggle CSSToggle User CSS");

if (wgCanonicalNamespace == "Special") $(".WikiaArticle ul:not(.countLI)").each(function{ if ($(">li", this).size != 50 && $(">li", this).size > 15) $(this).addClass("countLI").prepend("Displaying "+$(">li", this).size+"</li>");  });

$(".search-container").append("<a target='_blank' href='/Special:Search' style='font-size: 200%;'>Special:Search</a>"); console.log("global.js loaded");