MediaWiki:Common.js

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

//InactiveUser importScriptPage('InactiveUsers/code.js', 'dev'); InactiveUsers = { months: 1 };

// 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'		); }