Make WhatsApp follow the system theme

This commit is contained in:
David Heinemeier Hansson
2026-08-01 12:53:30 -07:00
parent 66427571bc
commit 3d59f9127e
3 changed files with 39 additions and 3 deletions
@@ -1,12 +1,14 @@
{
"manifest_version": 3,
"name": "WhatsApp Slim",
"version": "1.0",
"description": "Collapse WhatsApp Web's chat list to an avatar rail in narrow windows, this extension is installed by Omarchy",
"version": "1.1",
"description": "Make WhatsApp Web follow the system theme and collapse its chat list in narrow windows, this extension is installed by Omarchy",
"content_scripts": [
{
"matches": ["https://web.whatsapp.com/*"],
"css": ["whatsapp.css"]
"css": ["whatsapp.css"],
"js": ["system-theme.js"],
"run_at": "document_start"
}
]
}
@@ -0,0 +1,4 @@
if (localStorage.getItem("system-theme-mode") !== "true") {
localStorage.setItem("system-theme-mode", "true");
location.reload();
}