MediaWiki:Common.js: Difference between revisions

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

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');
});