MediaWiki:Common.js
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* 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() {
// Select the Wiki Manager row and the table
var wikiManagerRow = $('#wiki-manager');
var table = wikiManagerRow.closest('table');
// Move the Wiki Manager row to the top of the tbody
var tbody = table.find('tbody');
wikiManagerRow.prependTo(tbody);
// Check if the header is in the correct position
var header = table.find('thead');
if (header.length && header.parent().children('thead').length > 0) {
// Ensure header stays at the top
table.prepend(header);
}
});