MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
Disable dark reader |
Force light mode |
||
| Line 1: | Line 1: | ||
/* | /* Force browser to render in light mode - prevents Dark Reader and OS dark mode from inverting colors */ | ||
var meta = document.createElement('meta'); | (function() { | ||
meta.name = ' | var meta = document.createElement('meta'); | ||
meta.content = ' | meta.name = 'color-scheme'; | ||
document. | meta.content = 'light only'; | ||
document.head.insertBefore(meta, document.head.firstChild); | |||
})(); | |||
Revision as of 00:45, 11 July 2026
/* Force browser to render in light mode - prevents Dark Reader and OS dark mode from inverting colors */
(function() {
var meta = document.createElement('meta');
meta.name = 'color-scheme';
meta.content = 'light only';
document.head.insertBefore(meta, document.head.firstChild);
})();