MediaWiki:Common.js

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

/* Template:USERNAME Substitution */ if (wgUserName) {$('.InsertUsername').text(wgUserName);}

/* Special:Editcount User Page Tab */ $(function {   $('.WikiHeaderRestyle > nav li').not('.subnav-2.accent li').mouseenter(function { $(this).addClass('marked'); $('.WikiHeaderRestyle > nav li').not(this).removeClass; });   $('.tabs-container > ul.tabs').html($('.tabs-container > ul.tabs').html + 'Editcount'); });

/* Navigation Bar Discussions Link */ $(function {   $('' + 'Discussions' + '').appendTo('ul.subnav-2.firstChild');    window.discussionsLinkLoaded = true; });

/***************************/ /** Script Configuration ***/ /***************************/

/* HighlightUsers */ highlight = { selectAll: true, bot: '#60F', staff: '#008', vstf: '#008' };

/* StandardEditSummary */ window.dev = window.dev || {}; window.dev.editSummaries = { css: '#stdSummaries', select: [ '(click to browse)', '1. General editing', [ 'Updated information', 'Corrected spelling/grammar', 'Reorganised content', 'Added media' ],       '2. Radical editing', [ 'Removed content', 'Revised article', 'Reverted to older version' ],       '3. Maintenance', [ 'Updated category', 'Added notice template', 'Removed/fixed link(s)', 'Removed/replaced file(s)', 'Removed/corrected template(s)' ]   ] };

/* UserTags */ window.UserTagsJS = { modules: {}, tags: { moderator: {u:'Moderator'}, sysop: {u:'Administrator'} } }; UserTagsJS.modules.implode = {'moderator': ['content-moderator', 'threadmoderator']}; UserTagsJS.modules.inactive = 60; UserTagsJS.modules.metafilter = {'sysop': ['bureaucrat']}; UserTagsJS.modules.newuser = { days: 7, edits: 10 };

/***************************/ /***** Script Imports ******/ /***************************/ // See MediaWiki:ImportJS

/***************************/

/* Temporary ArchiveBoards Script (Discussions transitioning) */ window.ArchiveBoards = {boards: ['Technical Support', 'Wiki General Discussion', 'Geometry Dash Gameplay Discussion', 'Geometry Dash Update Discussion', 'Level Sharing and Reviewing', 'Custom Icon Creation']};

importArticles({   type: 'script',    articles: ['u:dev:MediaWiki:ArchiveBoards/code.js'] });