Nextcloud Mail — Darkmode in mail.

Forces dark background/text inside the message HTML iframe on Nextcloud Mail

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
r-hiland
日安装量
0
总安装量
0
评分
0 0 0
版本
1.2
创建于
2025-12-05
更新于
2025-12-05
大小
4.2 KB
许可证
MIT
适用于

Nextcloud made the decision to not apply darkmode to message iframes. Every time I open an email in dark mode, I get flash-banged. Their reasoning is that some senders might design their email for light mode only, so some elements might not work in dark mode. Personally, I never see this. Even so, there are only so many ways that it might clash, and should be solvable.


Anyways, I made this script and haven't had much issues with it. If there is an issue, it might need modification for rare occurrences, but so far I have not seen any. YOU WILL NEED TO MODIFY THE @match LINE (Obviously). Just keep the /apps/mail/* at the end of your nextcloud domain.