Jump to content

MediaWiki:Common.js: Difference between revisions

From Adaris
Created page with "$(document).ready(function() { $('.infoboxTable th').each(function() { if ($(this).text().trim() === "Image") { $(this).text(""); // Removes the text but keeps the <th> element } }); });"
 
No edit summary
Line 3: Line 3:
         if ($(this).text().trim() === "Image") {
         if ($(this).text().trim() === "Image") {
             $(this).text(""); // Removes the text but keeps the <th> element
             $(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
         }
         }
     });
     });
});
});

Revision as of 09:48, 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
        }
    });
});