User:XRusak/common.js

From Ages of Conflict

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
window.globalNavButtons = [];
if (mw.config.get('wgUserGroups').includes('sysop')) {
	window.globalNavButtons.push(
		{
			text: 'Recent Changes',
			url: mw.util.getUrl('Special:RecentChanges'),
			isMain: false,
			whoIsMain: false,
			shortName: 'RC',
		},
		{
			text: 'Staff',
			url: '',
			isMain: true,
			whoIsMain: false,
			shortName: 'Staff',
		},
		{
			text: 'Theme Designer',
			url: mw.util.getUrl('Special:ThemeDesigner'),
			isMain: false,
			whoIsMain: 'Staff',
			shortName: 'TD'
		}
	);
}
importArticles({
    type: 'script',
    articles: [
        'u:dev:MediaWiki:GlobalNavButtons.js',
    ]
});