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('wgPageName')  !== 'Special:Upload' && !mw.config.get('wgDiffOldId') ) {		$('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+:)?Mario(<\/a>)??(-|,|'s|and|&amp;)??/g, '$1$2$3')); });	} });