MediaWiki:Common.js: Difference between revisions

An idea by Jeff Lawlor
Created on 2025-04-25
Need to set the dark mode cookie server side.
No edit summary
Line 10: Line 10:
});
});


// Move infoboxes to the bottom of the article in mobile
$(document).ready(function() {
$(document).ready(function() {
// Remove duplicate About Idea Supreme footer link on desktop. See LocalSettings.php for more details
$('#footer-places-about').remove();
// Move infoboxes to the bottom of the article in mobile
if ($('body').hasClass('skin-minerva')) {
if ($('body').hasClass('skin-minerva')) {
var infoboxes = $('#mf-section-0 .infobox-idea');
var infoboxes = $('#mf-section-0 .infobox-idea');