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>");  });

if ($(".WikiaPageHeaderDiffHistory").length) { /* change the "edit" link of a diff page to edit the current version, as there is already an edit link for both diffs */ oldhref = $(".wikia-button[data-id=edit]").attr("href"); var newhref = oldhref.split("&oldid=")[0]; $(".wikia-button[data-id=edit]").attr("href", newhref); }

console.log("global.js loaded");