Firefox 浏览器附加组件
  • 扩展
  • 主题
    • 适用于 Firefox
    • 字典和语言包
    • 其他浏览器网站
    • 适用于 Android 的附加组件
登录
Toggle dark mode 预览

Toggle dark mode 作者: Cimbali

Toggle the content’s color scheme between preferring light or dark (or inheriting)

4.3 (24 reviews)4.3 (24 reviews)
849 个用户849 个用户
您需要 Firefox 来使用此扩展
下载 Firefox 并安装扩展
下载文件

扩展元数据

关于此扩展
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:
  1. dark colors
  2. light colors
  3. inherit browser colors (dark or light)
  4. 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; }
}
评分 4.3(1 位用户)
登录以评价此扩展
目前尚无评分

已保存星级评分

5
19
4
0
3
2
2
0
1
3
阅读全部 24 条评价
权限与数据详细了解

必要权限:

  • 读取和修改浏览器设置
更多信息
附加组件链接
  • 主页
  • 用户支持网站
版本
1.0.1
大小
53.48 KB
上次更新
4 年前 (2021年10月19日)
相关分类
  • 外观
许可证
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
版本历史
  • 查看所有版本
添加到收藏集
举报此附加组件
1.0.1 的发布说明
Adding a keyboard shortcut option
Cimbali 制作的更多扩展
  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

  • 目前尚无评分

转至 Mozilla 主页

附加组件

  • 关于
  • Firefox 附加组件博客
  • 扩展工坊
  • 开发者中心
  • 开发者政策
  • 社区博客
  • 论坛
  • 报告缺陷
  • 评价指南

浏览器

  • Desktop
  • Mobile
  • Enterprise

产品

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • 隐私
  • Cookie
  • 法律

除非另有注明,否则本网站上的内容可按知识共享 署名-相同方式共享 3.0 或更新版本使用。