Greasy Fork is available in English.

OSRS Wiki Auto Dark Mode

Automatic Dark Mode switcher for Old School Runescape Wiki

Autor
pirssi
Instalaciones diarias
0
Instalaciones totales
4
Calificaciones
0 0 0
Versión
1.1
Creado
01/06/2024
Actualizado
01/06/2024
Licencia
MIT
Funciona en

Automatically switches Old School RuneScape (OSRS) Wiki dark mode according to user's browser/system theme preference.

Enables the built-in dark mode by changing CSS classes on the page according to browser theme ("prefers-color-scheme").

To use, turn on dark mode on the Wiki from the menu on the top of the page, and the site will follow your browser's light/dark mode.

You can edit the script to enable using the "Browntown" theme instead of the normal blueish Dark theme. Additionally, you can enable and set a custom time frame in which the script will change to dark mode, e.g. you want to use the light theme on the Wiki while using dark mode in your browser during the day. See the script for comments how to use the brown theme or set the time frame and enable it.