MediaWiki:Common.js: Difference between revisions

From Winds Of Valen Wiki
Jump to navigation Jump to search
Force light mode
Rename tabs
Tag: Replaced
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Force light color scheme to prevent dark mode extensions from inverting colors */
$(document).ready(function() {
(function () {
     $('#ca-nstab-main a').text('Article');
     var m = document.createElement('meta');
     $('#ca-history a').text('History');
     m.name = 'color-scheme';
     $('#ca-view a').text('Read');
    m.content = 'light only';
});
     document.head.insertBefore(m, document.head.firstChild);
    document.documentElement.style.colorScheme = 'light';
}());

Latest revision as of 15:40, 11 July 2026

$(document).ready(function() {
    $('#ca-nstab-main a').text('Article');
    $('#ca-history a').text('History');
    $('#ca-view a').text('Read');
});