I wish to manipulate darkish mode within the newest Fb (internet) design by way of script. I attempted to examine code and every part is encoded. I came upon that the FB provides “
__fb-dark-mode” class in
<html> tag if darkish mode is enabled. BUT, I can not manipulate that as a result of it isn’t a proper approach, someplace within the settings darkish mode is not going to be enabled. So, I attempted to trace cookies, localstorage… and there may be nothing, nothing modifications after I toggle darkish mode. The place FB retains settings which mode I’m utilizing?? My concept is to control these settings to be able to allow/disable darkish mode.
Additionally, I attempted to toggle that button within the menu, however I can not as a result of FB clears complete div when focus is misplaced. Even when do not, after I toggle that button by way of jQuery nothing modifications on the front-end.