MediaWiki:Minerva.js
Jump to navigation
Jump to search
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.
/* All JavaScript here will be loaded for users of the MinervaNeue skin */ // Janky fix for Minerva and Theme Toggle extension theme feature conflicting with each other document.documentElement.className = document.documentElement.className // the first `skin-theme-clientpref-*` class is set by minerva; the theme toggle also adds more // `skin-theme-clientpref-*` classes to match the `view-*` class that corresponds to the user's // current theme, but strangely does not remove the original class added by Minerva itself, and // the two conflict with each other. Remove Minerva's initial theme class to fix it all easily. .replace(/(?:skin-theme-clientpref-(?:night|day|os)) (.* view-(?:light|dark))/, '$1');