MediaWiki:Common.js: Difference between revisions

No edit summary
No edit summary
Line 11: Line 11:
         if ($(this).text().trim() === "Introduction") {
         if ($(this).text().trim() === "Introduction") {
             $(this).remove(); // Removes the Introduction header
             $(this).remove(); // Removes the Introduction header
        }
    });
});
$(document).ready(function() {
    // Remove first empty paragraph (<p><br></p>) if it exists
    $('p').first().each(function() {
        if ($(this).html().trim() === "<br>") {
            $(this).remove();
         }
         }
     });
     });
});
});