User:Jeblad/common.js

$(window).on('load', function {	$(':target').closest('h1,h2,h3,h4,h5,h6,p,dt,dd,li,[style*="display:block"],[style*="display:block"]').addClass('mw-elevated-target'); }); $(window).on('hashchange', function {	$('.mw-elevated-target').removeClass('mw-elevated-target');	$(':target').closest('h1,h2,h3,h4,h5,h6,p,dt,dd,li,[style*="display:block"],[style*="display:block"]').addClass('mw-elevated-target'); });