OSRS Wiki Auto Dark Mode

Automatic Dark Mode switcher for Old School Runescape Wiki

作者
pirssi
今日安裝
0
安裝總數
3
評價
0 0 0
版本
1.1
建立日期
2024-06-01
更新日期
2024-06-01
授權條款
MIT
腳本執行於

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.