Jump to content

User:Nardog/CatChangesViewer.js

From Wikipedia, the free encyclopedia
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
if (mw.config.get('wgNamespaceNumber') === 14 &&
	(mw.config.get('wgAction') === 'view' || !mw.config.get('wgArticleId'))
) {
	mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Nardog/CatChangesViewer-core.js&action=raw&ctype=text/javascript');
	mw.loader.using([
		'mediawiki.api', 'mediawiki.util', 'oojs-ui-widgets', 'mediawiki.widgets',
		'mediawiki.widgets.UserInputWidget', 'mediawiki.widgets.datetime',
		'oojs-ui.styles.icons-interactions', 'oojs-ui.styles.icons-movement',
		'mediawiki.interface.helpers.styles'
	]);
}