MediaWiki:Common.js

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

// User tags window.UserTagsJS = { tags: { bureaucrat: { link: 'Project:Bureaucrats' },			admin: { link: 'Project:Sysops' },			'content-moderator': { link: 'Project:Content moderator' },			rollback: { link: 'Project:Rollback' },			'autoconfirmed-user': { link: 'Project:Autoconfirmed users' },			inactive: { title: 'The user hasn\'t edited for last 30 days' }		},		modules: { stopblocked: false, inactive: 30, mwGroups: ['bureaucrat', 'rollback', 'sysop', 'content-moderator', 'autoconfirmed-user', 'bot', 'bot-global'], autoconfirmed: true, newuser: { namespace: 0, // [Optional] Edits must be made to articles to count computation: function(days, edits) { return days < 10 && edits < 30 }           }        }	};    importArticle({        type: 'script',        article: 'w:c:dev:UserTags/code.js' });

// Configure AjaxRC importScriptPage('AjaxRC/code.js', 'dev'); (window.ajaxPages = (window.ajaxPages || [])).push(		"Special:RecentChanges",		"Special:Watchlist",		"Special:Log",		"Special:Contributions",		"Special:NewFiles",		"Special:NewPages",		"Special:ListFiles",		"Special:WikiActivity",		"Special:Images"	); window.AjaxRCRefreshText = 'Auto-Refresh'; window.AjaxRCRefreshHoverText = 'Automatically refresh every 60secs'; window.ajaxCallAgain = ($.isArray(window.ajaxCallAgain) && window.ajaxCallAgain) || []; scriptList.push('u:dev:AjaxRC/code.js');

/*Custom Collapsive box */ importScriptPage('MediaWiki:ShowHide/code.js', 'dev');

/*More Widget Info */ importScriptPage('MediaWiki:InfoWidgets/code.js', 'dev');

// 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',			' ',			'\'\'Yōkoso Jitsuryoku Shijō Shugi no Kyōshitsu e\'\' Vol. 0, Ch. 0, p. 0',			'mw-editbutton-ref'		); }