User:Underscorre/global.js

PurgeButtonText = 'Purge'; // Text for "purge" button added to edit dropdown

var ajaxPages = ["Special:RecentChanges", "Special:WikiActivity", "Special:Log", "Special:Newwikis"]; // Pages to have content reloaded with AJAX var ajaxRefresh = 15000; // Delay of 15 seconds between AJAX reloads, as opposed to the default 30

window.DisplayClockJS = '%2I:%2M:%2S %p %2d %{January;February;March;April;May;June;July;August;September;October;November;December}m %Y (UTC)'; // Date format for clock in top right

importArticles({ // Import useful Javascript stuff from dev.wikia.com   type: 'script',    articles: [        'u:dev:AjaxRC/code.js',        'u:dev:AjaxRedirect/code.js',        'u:dev:DisplayClock/code.js',        'u:dev:FindAndReplace/code.js',        'u:dev:LastEdited/code.js',        'u:dev:PurgeButton/code.js',        'u:dev:QQX/code.js',        'u:dev:RelocateEditDiscussionButtons/code.js',        'u:dev:SkinSwitchButton/code.js',        'u:dev:ViewRemoved/code.js'    ] });

$(function{ // Changes the global nav to not be as intrusive.   $(".wikia-logo-container").css("display", "none"); // Don't display Wikia logo in global nav    $(".hubs-container").css("display", "none"); // Don't display "hubs" in global nav    $("#globalNavigation").css("position", "relative"); // Force global nav to stay at top    $(".global-navigation").css("position", "relative"); });

$(function { // Stolen from w:c:admintools, adds an "Editcount" tab to the user profile header thing   var username = wgTitle.indexOf("Contributions/") != -1 ? wgTitle.replace("Contributions/", "") : wgTitle;    $('.tabs-container > ul.tabs').append('Editcount'); });

/* $(function { // ponies  (function (srcs,cfg) { var cbcount = 1; var callback = function  { -- cbcount; if (cbcount === 0) { BrowserPonies.setBaseUrl(cfg.baseurl); if (!BrowserPoniesBaseConfig.loaded) { BrowserPonies.loadConfig(BrowserPoniesBaseConfig); BrowserPoniesBaseConfig.loaded = true; } BrowserPonies.loadConfig(cfg); if (!BrowserPonies.running) BrowserPonies.start; } }; if (typeof(BrowserPoniesConfig) === "undefined") { window.BrowserPoniesConfig = {}; } if (typeof(BrowserPoniesBaseConfig) === "undefined") { ++ cbcount; BrowserPoniesConfig.onbasecfg = callback; } if (typeof(BrowserPonies) === "undefined") { ++ cbcount; BrowserPoniesConfig.oninit = callback; } var node = (document.body || document.documentElement || document.getElementsByTagName('head')[0]); for (var id in srcs) { if (document.getElementById(id)) continue; if (node) { var s = document.createElement('script'); s.type = 'text/javascript'; s.id = id; s.src = srcs[id]; node.appendChild(s); } else { document.write('\u003cscript type="text/javscript" src="'+ srcs[id]+'" id="'+id+'"\u003e\u003c/script\u003e'); } } callback;})({"browser-ponies-script":"https://panzi.github.io/Browser-Ponies/browserponies.js","browser-ponies-config":"https://panzi.github.io/Browser-Ponies/basecfg.js"},{"baseurl":"https://panzi.github.io/Browser-Ponies/","fadeDuration":500,"volume":1,"fps":25,"speed":3,"audioEnabled":false,"showFps":false,"showLoadProgress":true,"speakProbability":0.1,"spawn":{"twilight sparkle":1}});void(0) });*/