MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */

// ============================== // Config scripts, list what each is used for. // Most any config must go above the import statements. // Unless stated otherwise. // ==============================

// DynamicImages Config DynamicImages = { gifImages: true, gifGalleryImages: false, };

// Auto-refresh window.ajaxPages = ["Special:RecentChanges","Special:Watchlist","Special:Log","Special:Contributions","Special:WikiActivity"]; window.AjaxRCRefreshText = 'Auto-refresh'; window.AjaxRCRefreshHoverText = 'Automatically refresh the page';

//Clock Config // Display 24 hour time followed by day, month (English, full name) // and year with "(UTC)" at the end window.DisplayClockJS = '%2H:%2M:%2S - %2d %{January;February;March;April;May;June;July;August;September;October;November;December}m %Y (UTC)'; importArticles({   type: "script",    articles: [        'u:dev:DisplayClock/code.js'    ] });

//Auto Message Blocked var MessageBlock = { title : 'Block.', message : 'You have been blocked for $2 for the following reason(s): "$1"', autocheck : true };

//Last Edited Config window.lastEdited = { avatar: false };

// ================================================================ // BEGIN - Username replace function (Template:USERNAME) // * Description: Inserts user name into // * Maintainers: User:Splarka (original), User:Spang (current) // ================================================================

$(document).ready( function {   if(typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || wgUserName == null) return;   $('span.insertusername').each(function { $(this).text(wgUserName); }); });

// ================================================================ // END - Username replace function (Template:USERNAME) // ================================================================