Tagged Franz

Enable Whatsapp dark mode in Franz

Tested on Franz 5.5 but should work in any 5.0+ version.

Add the setDarkMode loop at the end of module.exports in ~/.config/Franz/recipes/whatsapp/webview.js at the end of the

module.exports = (Franz) => {

   ...

  const setDarkMode = function setDarkMode() {
      const body = document.getElementsByTagName("BODY")[0];                                                
      body.classList.add('dark');
  }
  Franz.loop(setDarkMode);
}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.