✨夜间模式助手

✨ 定时自动切换夜间模式 | 4种主题切换(夜间1,暗色2,护眼3,白天4)|自定义当前模式|自定义昼夜时间| 网站白名单 | 护眼模式 🛡️👁️

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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

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

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

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

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Autor
yyy.404
Installationen heute
0
Installationen gesamt
131
Bewertungen
0 0 0
Version
1.0.0
Erstellt am
20.05.2025
Letzte Aktualisierung
20.05.2025
Größe
216 KB
Lizenz
MIT
Wird angewandt auf
Alle Seiten

# ✨ 夜间模式助手 | 定时自动切换主题 ✨
#✨ 定时自动切换夜间模式 | 4种主题切换(夜间1,暗色2,护眼3,白天4)|自定义当前模式|自定义昼夜时间| 网站白名单 | 护眼模式 🛡️👁️
### 访客人数:



## 🚀 核心功能
### 1. 四档主题模式自由切换
- **夜间模式(#1)**:深色滤镜+高对比度(适配夜间阅读)
- **暗色模式(#2)**:低亮度+护眼暖色调(日常办公首选)
- **护眼模式(#3)**:自定义反色/亮度(缓解视觉疲劳)
- **白天模式(#4)**:原生亮度+昼夜差异化配置

### 2. 智能定时系统
- **自定义昼夜时段**:支持跨天设置(如 `22:00|6:00` 表示夜晚时段)
- **模式自动切换**:可配置白天/夜晚独立模式(如白天用#4,夜晚用#1)

### 3. 深度个性化配置
- **网站白名单**:一键排除不适配站点(支持域名匹配)
- **悬浮按钮控制**:位置(左/右)、大小自由调节
- **模式参数微调**:各模式独立亮度、色调、反色值设置


## 📌 使用指南
### 1. 快速操作入口
- **悬浮按钮**:页面右下角圆形按钮,点击切换模式(可在设置中隐藏)
- **右键菜单**:浏览器右键「夜间模式助手」提供切换/设置功能

### 2. 高级设置说明
1. **参数调整路径**:
`右键菜单 → ⚙️ 设置` → 图形化界面调节按钮位置、白名单、模式参数
2. **定时功能配置**:
- 昼夜时间:在 `🕒 自定义昼夜时间` 中输入 `开始|结束` 格式(如 `6:00|18:00`)
- 自动切换:在 `🌙 晚上自动切换模式` 中设置 `白天模式ID|夜晚模式ID`


## ⚠️ 注意事项
### 1. 兼容性说明
- **白名单优先级**:列表内域名完全禁用脚本功能(含滤镜/按钮)
- **浏览器差异**:
- Firefox 使用独立滤镜渲染,可能存在细微色彩差异
- 视频平台(如优酷/爱奇艺)建议手动添加至白名单

### 2. 性能优化
- 护眼模式(#3)建议配置排除选择器(如 `img, video`)以减少GPU负担
- 低配置设备推荐使用「白天模式」或「暗色模式」


## 🛠️ 技术架构
### 核心依赖
- **滤镜引擎**:[darkrule](https://unpkg.com/darkrule)(自定义CSS滤镜规则)
- **交互组件**:SweetAlert2(弹窗设置界面)
- **存储方案**:GM_xmlhttpRequest(兼容油猴API数据持久化)


## 📦 更新日志
### v1.0.0
- 基础功能上线:四模式切换、定时系统、白名单管理
- 交互优化:悬浮按钮动画、右键菜单层级简化


## 🙏 开源致谢
- [darkrule](https://github.com/your-username/darkrule) —— 滤镜规则核心
- [SweetAlert2](https://sweetalert2.github.io/) —— 弹窗界面支持



**使用反馈**:请通过脚本评论区或作者邮箱提交BUG/建议,感谢支持!