Hacker News:深色模式
将明亮背景换成统一的深色主题,夜间对眼睛更友好。
可复制的代码
/* A proper dark theme for the whole site */
html, body {
background: #1a1a1a !important;
color: #c8c8c8 !important;
}
#hnmain {
background: #1f1f1f !important;
}
td, .comment, .commtext, .toptext, .default {
color: #c8c8c8 !important;
}
.title .titleline a:link,
a:link, a:visited {
color: #b9bfc6 !important;
}
.subtext, .comhead, .subtext a, .comhead a,
.rank, td.title {
color: #8a8a8a !important;
}
.commtext a:link, .toptext a:link {
color: #6ea8fe !important;
}
input, textarea {
background: #2a2a2a !important;
color: #e0e0e0 !important;
border: 1px solid #444 !important;
}
如何使用此示例
- 用上方按钮复制代码。
- 安装 JustZix(2 分钟),在目标页面打开扩展。
- 添加一条匹配该页面的新规则。
- 将代码粘贴到规则的 CSS 面板并保存 — 效果立即生效。
为此示例评分
暂无评分 — 成为第一个。