Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.js: Difference between revisions

MediaWiki interface page
No edit summary
Tag: Replaced
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
/* Any JavaScript here will be loaded for all users on every page load. */
$(document).ready(function() {
    // Find the header with the text "Muling"
    var targetHeader = $("span.mw-headline:contains('Muling')");
    // Check if the header exists
    if (targetHeader.length) {
        // Collapse the section by adding the 'collapsed' class
        var collapsibleSection = targetHeader.closest(".mw-collapsible");
        if (collapsibleSection.length && !collapsibleSection.hasClass('collapsed')) {
            collapsibleSection.addClass('collapsed');
        }
    }
});

Latest revision as of 01:08, 2 April 2025

/* Any JavaScript here will be loaded for all users on every page load. */