WhatsApp like it should be: official dark mode + no whitespace!

Enables the official dark mode on WhatsApp Web (by adding the class `dark` to the body) and also removed the dumb space-wasting layout used on displays wider than 1440px.

目前为 2020-07-11 提交的版本。查看 最新版本

作者
Adam Warren
评分
0 0 0
版本
1.2.0
创建于
2020-05-17
更新于
2020-07-11
大小
2.0 KB
许可证
暂无
适用于

WhatsApp recently introduced a "Theme" setting, but it still does not respect your operating system or browser-level dark mode toggle, so you have to set it manually. That's no good; this script is still better as WhatsApp will follow your system theme.

This script adds the .dark class to the body on web.whatsapp.com, to enable the official dark mode. It also modified local storage so that the dark or light mode persists through the loading screen, too.

It also appends a little bit of styling to prevent WhatsApp from changing to the annoying modal-type layout of screens wider than 1440px, which has always annoyed me.

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址