Toggle dark mode EN
Cimbali · Firefox
Toggle the content’s color scheme between preferring light or dark (or inheriting)
简介
For Firefox version ≥ 95.
Minimal add-on
This is the simplest possible add-on with the least possible permissions.
Clicking the add-on action in your toolbar cycles the color scheme preference for browser content, between the following 4 values:
- dark colors
- light colors
- inherit browser colors (dark or light)
- inherit system colors (dark or light)
You can enable or disable values in the cycle from the add-on content.
Fingerprinting incompatibility
Strong fingerprinting resistance (by setting the preference privacy.resistFingerprinting) stops Firefox from disclosing your color preference to websites, which means this add-on will have no effect.
Website support
This add-on relies on the fact that websites have their own proper stylesheets for dark and light modes, for example DuckDuckGo.
An increasing number of websites now offer light and dark schemes, though you may need to select a specific option to inherit your browser’s colors, e.g. google, github, stackoverflow, and many more.
If you want to add your own dark mode to other websites, you can use user style sheet addons such as e.g. Stylus. Then you can wrap the CSS in a prefers-color-scheme media feature so it responds to this add-on’s toggle. For example:
@media (prefers-color-scheme: dark) {
/* CSS that ony applies to dark mode */
body { background: black; color: #ddd; }
}
@media (prefers-color-scheme: light) {
/* CSS that ony applies to light mode */
body { background: white; color: black; }
}
Toggle dark mode 是做什么的
Toggle dark mode 是一款面向 Firefox 的外观主题类扩展,主要用来更换浏览器配色、给网页加深色模式、调整界面观感。官方对它的介绍是:Toggle the content’s color scheme between preferring light or dark (or inheriting)在Firefox 附加组件商店(AMO)上,它当前版本 1.0.1,评分 4.2(30 人评价),约 962 名用户。
适合什么人用
从功能定位看,Toggle dark mode 更适合长时间对着屏幕、希望降低眼睛负担的用户。如果你平时只是偶尔遇到相关需求,用浏览器自带功能也能凑合;但如果这件事每天都发生,装一个专门处理它的扩展通常比手动操作省事得多。
怎么安装 Toggle dark mode
- 打开Firefox 附加组件商店(AMO)上的官方页面;
- 点「添加到浏览器」并确认权限提示;
- 装好后在扩展列表里固定图标,方便随时开关。
本站只做索引与介绍,安装包来自官方商店。如果商店页面提示当前地区不可用,说明该扩展未在你所在区域上架。
常见问题
Toggle dark mode 是免费的吗?
Toggle dark mode 在Firefox 附加组件商店(AMO)免费提供下载。它是浏览器扩展,装上就能直接用,不需要注册账号。
Toggle dark mode 安全吗?
它只申请了 0 项权限,范围比较克制,没有申请「读取所有网站数据」这种大权限。
Toggle dark mode 支持哪些浏览器?
当前收录的版本来自Firefox 附加组件商店(AMO),适用于 Firefox。同一个扩展在其他商店可能有对应版本,但功能与版本号不一定相同。
怎么卸载 Toggle dark mode?
在扩展管理页找到 Toggle dark mode,点移除即可。它在本地保存的设置会一起清掉,不会残留数据。
权限清单 来自 manifest.json 原文
接口权限 2
browserSettingsstorage