MediaWiki:Common.js: Difference between revisions

From GrinderScape Wiki
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 11: Line 11:


$(document).ready(function() {
$(document).ready(function() {
     var groupName = "Wiki Managers";
     // Target the row with ID 'wiki-manager'
    var groupList = $('.mw-special-ListGroupRights .group-rights');
     var wikiManagerRow = $('#wiki-manager');
     var targetGroup = groupList.filter(function() {
        return $(this).find('.group-name').text() === groupName;
    });


     // Move "Wiki Manager" to the top
     // Find the parent table and move the row to the top
     targetGroup.prependTo('.mw-special-ListGroupRights');
     wikiManagerRow.prependTo(wikiManagerRow.closest('table'));
});
});

Revision as of 23:55, 21 March 2025

/* Load dependencies */
// mw.loader.load('https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css', 'text/css');

/* Remove unessecary footer text */
$(document).ready(function() {
    var footerInfo = document.getElementById("footer-info-credits");
    if (footerInfo) {
        footerInfo.innerHTML = footerInfo.innerHTML.replace("GrinderScape Wiki user", "");
    }
});

$(document).ready(function() {
    // Target the row with ID 'wiki-manager'
    var wikiManagerRow = $('#wiki-manager');

    // Find the parent table and move the row to the top
    wikiManagerRow.prependTo(wikiManagerRow.closest('table'));
});