MediaWiki:Gadget-GlobalScript.js

/* Any JavaScript here will be loaded for all skins on both desktop and mobile */

/* Fix media negative margin bug for wide galleries */ $(function {	$('.gallerybox audio').each(function(i, obj) { if ($(this).parent.css('margin-top') < '15px') $(this).parent.css('margin', '15px auto'); }); });

/* ??? */ $(function {	if ( (mw.config.get('wgAction') === 'view' || mw.config.get('wgAction')  === 'history') && mw.config.get('wgPageContentModel')  === 'wikitext' && mw.config.get('wgPageName') !== 'Special:Upload' && !mw.config.get('wgDiffOldId') && mw.config.get('wgNamespaceNumber') !== 104 ) {		$('title').html($('title').html.replace(/Mario?(-|,|'s|and|&amp;)??/g, ''));		$("body *:contains('Mario')").each(function { $(this).html($(this).html.replace(/( |"|>)MarioWiki/g, '$1SuperWiki').replace(/( |"|>)(\w+:)?(Baby |\?Mario(<\/a>)??(-|,|'s|and|&amp;|\))??/g, '$1$2$4')); });	} });