novelupdates auto darkmode

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

Author
sz
Daily installs
0
Total installs
17
Ratings
0 0 0
Version
1.0
Created
2022-05-22
Updated
2022-05-22
License
Apache-2.0
Applies to

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