17,097
edits
mNo edit summary |
mNo edit summary |
||
Line 28: | Line 28: | ||
if ($('body.skin-minerva').length) | if ($('body.skin-minerva').length) | ||
setTimeout(function() { $('.header-action button').click(unicodeFixer) }, 3000); | setTimeout(function() { $('.header-action button').click(unicodeFixer) }, 3000); | ||
} | |||
}); | |||
/* SmashWiki: Match active tabber tab to infobox */ | |||
$(function() { | |||
if ($('.infobox .tabber').length && $('.infobox th').length) { | |||
var bgColor = $('.infobox th').css('background'); | |||
if (bgColor !== 'none' && bgColor !== 'rgb(255, 255, 255)') | |||
$('head').append('<style type="text/css">body .mw-parser-output .infobox ul.tabbernav li.tabberactive a { background: ' + bgColor + '; }</style>'); | |||
} | } | ||
}); | }); |