Greasy Fork is available in English.

OSRS Wiki Auto Dark Mode

Automatic Dark Mode switcher for Old School Runescape Wiki

Skaber
pirssi
Daglige installationer
0
Installationer i alt
4
Bedømmelser
0 0 0
Version
1.1
Oprettet
01.06.2024
Opdateret
01.06.2024
Licens
MIT
Gælder for

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.