Jump to content

MediaWiki:Minervaneue.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Jon (WMF) (talk | contribs) at 22:22, 17 August 2017 (Created page with '// See also [[MediaWiki:Minerva.js] (T171644) // Only run this on desktop Minerva if ( !mw.config.get( 'wgMFMode' ) ) { mw.loader.using('skins.minerva.editor')....'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
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.
// See also [[MediaWiki:Minerva.js] (T171644)
// Only run this on desktop Minerva
if ( !mw.config.get( 'wgMFMode' ) ) {
	mw.loader.using('skins.minerva.editor').then(
		function () {
			// T173545
			$('#footer-info-lastmod').remove();

			// Edit icon fix ups... (T172948)
			$('#ca-edit a').attr('href', '#/editor/0' );
			// Reveal other edit icons
			$( '#bodyContent h2' ).addClass( 'open-block' );
		}
	);
}