You can use Dark Reader for those sites. But I do get where you're coming from.
I'm not in an IDE all day every day, but there are dashboards that I keep in light mode to subconsciously signal to myself to be extra careful in. It's like how some Linux admins set their production shells to bright red.