MediaWiki:Common.js: Difference between revisions
Appearance
No edit summary Tag: Reverted |
No edit summary Tag: Manual revert |
||
Line 22: | Line 22: | ||
} | } | ||
}); | }); | ||
}); | }); |
Revision as of 03:18, 6 April 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();
}
});
});