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 13: Line 13:
     // Target the row with ID 'wiki-manager'
     // Target the row with ID 'wiki-manager'
     var wikiManagerRow = $('#wiki-manager');
     var wikiManagerRow = $('#wiki-manager');
 
   
     // Find the parent table and move the row to the top
     // Find the parent table and the tbody
     wikiManagerRow.prependTo(wikiManagerRow.closest('table'));
    var tableBody = wikiManagerRow.closest('table').find('tbody');
   
    // Move the row to the top of the tbody (below the header)
     wikiManagerRow.prependTo(tableBody);
});
});

Revision as of 23:57, 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 the tbody
    var tableBody = wikiManagerRow.closest('table').find('tbody');
    
    // Move the row to the top of the tbody (below the header)
    wikiManagerRow.prependTo(tableBody);
});