novelupdates auto darkmode

override theme selection on native browser darkmode change. Basic Idea from Reddit Auto Dark Mode

作者
sz
今日安裝
0
安裝總數
22
評價
0 0 0
版本
1.0
建立日期
2022-05-22
更新日期
2022-05-22
尺寸
2.8 KB
授權條款
Apache-2.0
腳本執行於

I like light themes during daylight and dark themes during night.
Basic Idea from Reddit - Auto Device Theme - https://greasyfork.org/en/scripts/416952-reddit-auto-device-theme

Script overrides user profile theme depending on native browser DarkMode setting.

Not working in forum.novelupdates.com.
Only selection toggle of main page working.

If admins of novelupdates are seeing this. Two plugin recommendations.
For the mainpage "WP Dark Mode"
https://wordpress.org/plugins/wp-dark-mode/

and for the Forum - "[TH] Style Switch - Xenforo 2 1.0.0"
https://xenvn.com/threads/th-style-switch-xenforo-2.329/



GM_setValue, GM_getValue used to save user style selection during standard/dark mode