User:Ricewind/common.js: Difference between revisions
From Melvor Idle
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
mw.hook('pp.render').add(function(popup) { | mw.hook('pp.render').add(function(popup) { | ||
// Find the popup content | |||
var $popupContent = popup.$body; | var $popupContent = popup.$body; | ||
// Remove headers from the popup content | |||
// | $popupContent.find('h1, h2, h3, h4, h5, h6').remove(); | ||
}); | }); |