MediaWiki:Common.js

EditIntroButtonText = 'Intro';

// Ajax auto-refresh var ajaxPages = ['Special:RecentChanges','Special:WikiActivity','Special:Contributions']; var AjaxRCRefreshText = 'Auto-refresh'; var ajaxRefresh = 30000;

window.UserTagsJS = { extensions: {}, modules: {}, tags: { tech: { u: 'Technician', title: 'This user holds Admin rights but is not a "real" administrator. If you need administrator help, you should ask someone else.', order: 0 } } }; UserTagsJS.modules.inactive = { days: 30, namespaces: [0, 'Talk', 'User talk', 'Forum'] // Edits must be to articles or talk pages or user talk pages or the forum to count, others don't count }; UserTagsJS.modules.mwGroups = ['sysop', 'bannedfromchat']; UserTagsJS.modules.custom = { 'Lunarity': ['tech'], 'Pecoes': ['tech'] }; UserTagsJS.extensions.technicians = { filter: function(groups) { return (groups.sysop && groups.tech) ? ['sysop'] : ['tech']; } }; UserTagsJS.modules.technicians = true;

window.DisplayClockJS = { location: 'global', format: '%2d %b %Y %2H:%2M:%2S (UTC)', interval: 5000, hoverText: 'Purge the server cache and update the contents of this page.' };

// I combined all external scripts into a single statement. // That should increase the load speed noticeably -- pecoes importArticles({   type: 'script',    articles: [        'MediaWiki:Slider.js',        'MediaWiki:Footer.js',        'MediaWiki:MinifiedAudio.js',        'w:dev:ShowHide/code.js',        'w:dev:DisplayClock/code.js',        'w:dev:BackToTopButton/code.js',        'w:dev:Countdown/code.js',        'w:dev:AutoEditDropdown/code.js',        'w:dev:PurgeButton/code.js',        'w:dev:AjaxRC/code.js',        'w:dev:ReferencePopups/code.js',        'w:dev:ReferencePopups/custom.js',        'w:dev:SpoilerAlert/code.js', // Is this actually used, doesn't it need special configuration?        'w:dev:VisualSpellCheck/code.js',        'w:dev:UserTags/code.js'    ] });

// Disable the button to add images to existing galleries $(function{	$('#bodyContent .wikia-gallery-add a').unbind('click').click(function{return false;}); });

// Credit to Beyblade wiki. // Adding "My Contributions" to user menu. // Function: Adds "My Contributions" to the UserDropdownMenu. function UserContribsMenuItem { $('ul.AccountNavigation li:first-child ul.subnav li:first-child').after('My contributions'); } $(UserContribsMenuItem); function onloadhookcustom { var replace = document.getElementById("OnlineChat"); if (null != replace) { var getvalue = replace.getAttribute("class"); replace.innerHTML=' [ Copy this | Start New | Full Size</a> ]'; } } if (window.addEventListener) {window.addEventListener("load",onloadhookcustom,false);} else if (window.attachEvent) {window.attachEvent("onload",onloadhookcustom);}

// Edits to OnTheWiki // importScript('MediaWiki:Wikia.js/OnTheWiki.js'); // END Edits to OnTheWiki

// Custom headers for Hot Spots and Community Messages function hotspotsheader { $('.HotSpotsModule').prepend(' <font size= "5" face="Black Chancery">Hot Spots '); } $(hotspotsheader); function communityheader { $('.CommunityCornerModule').prepend(' <font size= "5" face="Black Chancery">Community Messages '); } $(communityheader); // END Custom headers for Hot Spots and Community Messages

/*Easy Dropdown Buttons - by ShermanTheMythran (special thanks to Mathmagician)*/ $('.drop-button').click(function{	var buttonToggle = $(this).children;	buttonToggle.toggle;	$(this).toggleClass('active'); });

/* load audio player for message wall and forums */ if (1201 === wgNamespaceNumber || 2000 === wgNamespaceNumber || 'Forum' === wgCanonicalSpecialPageName) { $.getScript('/extensions/OggHandler/OggPlayer.js'); }

/* Template:USERNAME */ $(function {    $('.insertusername').text(mw.config.get('wgUserName')); });

importArticles({   type: 'script',    articles: [        'w:dev:WallGreetingButton/code.js'    ] });