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:RecentChanges","Special:WikiActivity"];

PurgeButtonText = 'Refresh';

/* UserTags from Dev Wikia */ window.UserTagsJS = { modules: {}, tags: { irregular: { u:'Irregular'}, blocked: { u:'Sealed'}, newuser: { u:'New Regular'}, testadmin: { u:'Test Admin'}, regular: { u:'Regular'}, ranker: { u:'Ranker', link:'Ranker'}, highranker: { u:'High Ranker', link:'Ranker#High Ranker'}, bot: { u:'Test Assistant'}, threadmoderator: { u:'Test Director'}, chatmoderator: { u:'Living Ignition Weapon', link:'Tower of God Wiki:Wiki Users#Chat Moderators (Living Ignition Weapons)'}, rollback: { u:'Royal Enforcement Division'}, sysop: { u:'Ruler', link:'Tower of God Wiki:Wiki Users#Administrators (Rulers)'}, bureaucrat: { u:'Guardian', link:'Tower of God Wiki:Wiki Users#Bureaucrats (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', 'chatmoderator', 'threadmoderator', 'patroller', 'rollback', 'sysop', 'bot', 'bot-global', 'blocked', 'poweruser']; UserTagsJS.modules.metafilter = { chatmoderator: ['bureaucrat'], threadmoderator: ['bureaucrat'], rollback: ['bureaucrat'], patroller: ['bureaucrat'], sysop: ['bureaucrat'] }; UserTagsJS.modules.custom = { 'Zahard': ['highranker'], 'Tofu21': ['highranker'], '07n156': ['highranker'], 'Reistenger': ['highranker'], 'Lucenthia': ['ranker'], 'WellWhatever13': ['ranker'] };

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(			'http://images.wikia.com/central/images/c/c8/Button_redirect.png',			'Redirect',			'#REDIRECT ',			'',			'Insert text',			'mw-editbutton-redirect'		); mw.toolbar.addButton(			'http://images2.wikia.nocookie.net/__cb20100821183407/bleach/en/images/e/e1/O_Accent_Button.png',			'Add the ō character',			'ō',			,			,			'mw-editbutton-macron-o'		); mw.toolbar.addButton(			'http://images4.wikia.nocookie.net/__cb20100821183407/bleach/en/images/d/db/U_Accent_Button.png',			'Add the ū character',			'ū',			,			,			'mw-editbutton-macron-u'		); mw.toolbar.addButton(			'http://images1.wikia.nocookie.net/naruto/images/7/79/Button_reflink.png',			'Add a reference',			' ',			'Insert source',			'mw-editbutton-ref'		); } importArticles({   type: 'script',    articles: [	"u:dev:AjaxRC/code.js", /* Auto Refresh */	"u:dev:BackToTopButton/code.js", /* Add Back To Top Button */	"w:c:dev:ReferencePopups/code.js", /* References pop-up when hovered over */	"u:dev:PurgeButton/code.js", /* Adds refresh button to page controls */	"u:dev:ExternalImageLoader/code.js", /* Allows adding of images external to the wiki */	"w:c:dev:Countdown/code.js", /* Creates a Countdown clock where specified */	"w:c:dev:SignatureCheck/code.js", /* Checks users have signed their talk page replies */	"u:dev:AllPagesHideRedirect/code.js",	"w:c:dev:UserTags/code.js", /* Enables customisable User Tags */	"u:dev:DisplayClock/code.js", /* Displays clock on wiki */	"u:dev:AjaxBatchDelete/code.2.js", /* Enables deleting of multiple pages */	"MediaWiki:Common.js/displayTimer.js",	"MediaWiki:Common.js/Toggler.js"    ] });

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