# 炫酷的Komari主题代码KomariBeautify

**URL:** <https://niege.app/t/topic/97>\
**Category:** 开发调试\
**Tags:** Theme, Github\
**Created:** [2025 年12 月 8 日 01:43 UTC](https://niege.app/t/topic/97 "2025-12-08T01:43:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

作者： ![niege](https://niege.app/user_avatar/niege.app/niege/32/3_2.png) [@niege](https://niege.app/u/niege)\
发布日期： [2025 年12 月 8 日 01:43 UTC](https://niege.app/t/topic/97/1 "2025-12-08T01:43:19Z")

</div>

# KomariBeautify - 基于PurCarte主题的自定义代码

> **[GitHub - YoungYannick/KomariBeautify: 一个用于增强使用PurCarte主题的Komari探针的文件](https://github.com/YoungYannick/KomariBeautify)**
>
> 一个用于增强使用PurCarte主题的Komari探针的文件

这是一个自定义的HTML文件（KomariBeautify.html），用于增强Komari探针的功能，基于PurCarte主题实现。文件包含CSS样式和JavaScript脚本，主要添加了欢迎气泡、资产统计、地球渲染组件以及页面保护机制。所有组件均设计为响应式，支持移动设备，并与PurCarte主题的CSS变量（如`--accent-9`、`--purcarte-card-color`等）集成，确保视觉一致性。

> **注意** ：适配[Komari](https://github.com/komari-monitor/komari/releases/tag/1.1.3) v1.1.3, [PurCarte](https://github.com/Montia37/komari-theme-purcarte/releases/tag/v1.2.5) v1.2.5，其他版本未经测试，可能无法正常运行

[![3D地球](https://github.com/YoungYannick/KomariBeautify/raw/master/images/3DEarth.gif)](https://github.com/YoungYannick/KomariBeautify/blob/master/images/3DEarth.gif) [![3D地球](https://github.com/YoungYannick/KomariBeautify/raw/master/images/3DEarth-2.gif)](https://github.com/YoungYannick/KomariBeautify/blob/master/images/3DEarth-2.gif)

## 使用

**设置** \> **站点** \> **自定义** ； **CSS/HTML** 放 **自定义头部** ， **JS** 放 **自定义Body**

> <https://github.com/YoungYannick/KomariBeautify/blob/master/KomariBeautify.html>
