You will need to install a user script manager extension to install this script.
When the background color of the homepage is bright, it automatically switches to a dark screen.
It provides a filter function that allows users to add or exclude URLs to be applied directly.
You need to install Tampermonkey before get this script.
Or you can install it directly from the Google Webstore. Smart Dark Mode