MediaWiki:Common.js: Difference between revisions

No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
Line 1,388: Line 1,388:


/*---------------------------22-06-2026---------------------------------------*/
/*---------------------------22-06-2026---------------------------------------*/
$(function () {
    // Remove all blank paragraphs after author name
    $('.ekatra-right-author').each(function () {
        $(this).nextAll('p').each(function () {
            var p = $(this);
            if ($.trim(p.text()) === '') {
                p.remove();
            } else {
                return false;
            }
        });
    });
    // Remove all blank paragraphs before HeaderNav2
    $('.header-mainblock').each(function () {
        $(this).prevAll('p').each(function () {
            var p = $(this);
            if ($.trim(p.text()) === '') {
                p.remove();
            } else {
                return false;
            }
        });
    });
});