MediaWiki:Common.js: Difference between revisions
Appearance
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(); | |||
} | } | ||
}); | }); | ||
}); | }); |
Revision as of 09:50, 27 February 2025
$(document).ready(function() {
$('.infoboxTable th').each(function() {
if ($(this).text().trim() === "Image") {
$(this).text(""); // Removes the text but keeps the <th> element
}
});
});
$(document).ready(function() {
$('h2').each(function() {
if ($(this).text().trim() === "Introduction") {
$(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();
}
});
});