MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
LadderGoat (talk | contribs) No edit summary Tag: Reverted |
LadderGoat (talk | contribs) 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 | // Find the parent table and the tbody | ||
wikiManagerRow.prependTo( | 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);
});