Nextcloud Mail — Darkmode in mail.

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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.