MediaWiki:Common.js

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

/* Auto Refresh */ AjaxRCRefreshText = 'Auto-refresh'; AjaxRCRefreshHoverText = 'Automatically refresh the page'; ajaxPages = [ 'Special:WikiActivity', 'Special:RecentChanges', 'Special:Contributions', 'Special:Log', 'Special:Log/move', 'Special:AbuseLog', 'Special:NewFiles', 'Special:NewPages', 'Special:Watchlist', 'Special:Statistics', 'Special:ListFiles' ];

window.railWAM = { logPage:"Project:WAM Log" }; PurgeButtonText = 'Refresh';

/* UserTags from Dev Wikia */ window.UserTagsJS = { modules: {}, tags: { irregular: { u:'Irregular'}, blocked: { u:'Sealed'}, newuser: { u:'Newborn'}, newregular: { u:'New Regular'}, regular: { u:'Regular', link:'Regular'}, ranker: { u:'Ranker', link:'Ranker'}, highranker: { u:'High Ranker', link:'Ranker#High Ranker'}, bot: { u:'Test Assistant'}, 'content-moderator': { u:'Test Admin', link:'Tower of God Wiki:Wiki Users#Content Moderators (Test Admins)' },       threadmoderator: { u:'Test Admin', link:'Tower of God Wiki:Wiki Users#Thread Moderators (Test Admins)' },       chatmoderator: { u:'Test Admin', link:'Tower of God Wiki:Wiki Users#Chat Moderators (Test Admins)' },       testdirector: { u:'Test Director', link:'Tower of God Wiki:Wiki Users#"Test Directors"' },       rollback: { u:'Royal Enforcement Division'}, sysop: { u:'Ruler', link:'Tower of God Wiki:Wiki Users#Administrators (Rulers)' },       bureaucrat: { u:'Floor Guardian', link:'Tower of God Wiki:Wiki Users#Bureaucrats (Floor Guardians)' },       poweruser: { u:'Power User'} } }; UserTagsJS.modules.inactive = 30; UserTagsJS.modules.newuser = true; UserTagsJS.modules.newuser = { days: 5, // Must have been on the Wiki for 5 days edits: 19 // And have at least 19 edits to remove the tag }; UserTagsJS.modules.autoconfirmed = true; UserTagsJS.modules.stopblocked = true; // Manually turn on/off UserTagsJS.modules.mwGroups = [ 'bureaucrat', 'content-moderator', 'chatmoderator', 'threadmoderator', 'patroller', 'rollback', 'sysop', 'bot', 'bot-global', 'blocked', 'poweruser' ];

UserTagsJS.modules.metafilter = { 'content-moderator': ['bureaucrat'], chatmoderator: ['bureaucrat'], threadmoderator: ['bureaucrat'], rollback: ['bureaucrat'], patroller: ['bureaucrat'], sysop: ['bureaucrat'] };

UserTagsJS.modules.implode = { 'testdirector': ['chatmoderator', 'content-moderator', 'threadmoderator'] };

UserTagsJS.modules.custom = { // High Rankers - 3000+ edits 'Zahard': ['highranker'], // (inactive) 'Reistenger': ['highranker'], 'Tofu21': ['highranker'], // (inactive) 'Athanos': ['highranker'], '07n156': ['highranker'], // (inactive) // Rankers - 1500+ edits 'Vlworr': ['ranker'], // (inactive) 'Lucenthia': ['ranker'], // (inactive) 'Adat': ['ranker'], // (inactive) 'Urek Mazino': ['ranker'], // (inactive) 'Baam25th': ['ranker'], // (inactive) 'Clash.Bikash': ['ranker'], 'Mort de Great': ['ranker'], 'WellWhatever13': ['ranker'], // (inactive) // Regulars - 500+ edits 'TonySansNom': ['regular'], 'EternET': ['regular'], // (inactive) 'Prince of zahard': ['regular'], // (inactive) 'Mirror143': ['regular'], // (inactive) 'Sigfodr': ['regular'], // (inactive) 'L86934': ['regular'], // (inactive) 'GoDai': ['regular'], // (inactive) 'Parkewl': ['regular'], 'T.F.Baam': ['regular'], // (inactive) 'Rachellover69': ['regular'], // (inactive) 'GoodYearBlimp': ['regular'], // (inactive) // New Regulars - No edit limit, but shows enthusiasm 'Dheming': ['newregular'], // Promising grammar correction effort };

window.DisplayClockJS = { hoverText: 'Click here to weed threats from the Tower (i.e. refresh the page!)' };

// Custom edit buttons if (mw.toolbar) { mw.toolbar.addButton(       'https://images.wikia.nocookie.net/central/images/c/c8/Button_redirect.png',        'Redirect',        '#REDIRECT ',        '',        'Insert text',        'mw-editbutton-redirect'    );

mw.toolbar.addButton(       'https://images.wikia.nocookie.net/__cb20100821183407/bleach/en/images/e/e1/O_Accent_Button.png',        'Add the ō character',        'ō',        ,        ,        'mw-editbutton-macron-o'    );

mw.toolbar.addButton(       'https://images.wikia.nocookie.net/__cb20100821183407/bleach/en/images/d/db/U_Accent_Button.png',        'Add the ū character',        'ū',        ,        ,        'mw-editbutton-macron-u'    );

mw.toolbar.addButton(       'https://images.wikia.nocookie.net/naruto/images/7/79/Button_reflink.png',        'Add a reference',        ' ',        'Insert source',        'mw-editbutton-ref'    ); }

$(function UserNameReplace {   if(typeof(disableUsernameReplace) != 'undefined' && disableUsernameReplace || wgUserName === null) return;    $("span.insertusername").html(wgUserName); });