248 字
1 分钟
哪吒监控 V1美化
🤖AI 摘要
fishcpy AI
2025-06-07
0 次访问

如何部署

部署请看哪哪吒监控文档

美化#

点这里预览效果

登录到后台,点击头像再点击系统设置,在里面找到自定义代码(样式和脚本) 插入下方代码

请根据自己情况修改

/* 基础设置 */
<script>
window.CustomLogo = "https://cdn.fishcpy.top/img/2025/05/29/683836588877f.webp"; /* 自定义logo */
window.ShowNetTransfer = "true"; /* 卡片显示上下行流量 */
window.DisableAnimatedMan = "true"; /* 关掉动画人物插图 */
window.CustomDesc ="非淡泊无以明志,非宁静无以致远"; /* 自定义描述 */
</script>
/* 以上鼠标特效 */
<script>
window.CustomBackgroundImage="https://cdn.fishcpy.top/img/2025/05/05/68182abdc7d6e.png"; /* 背景图 */
</script>
<script src="https://testingcf.jsdelivr.net/gh/mocchen/cssmeihua/js/aixin.js"></script>/* 点击爱心特效 */
<script src="https://testingcf.jsdelivr.net/gh/mocchen/cssmeihua/js/yinghua.js"></script> /* 页面樱花效果 */
<span class="js-cursor-container"></span>
<script src="https://testingcf.jsdelivr.net/gh/mocchen/cssmeihua/js/xiaoxingxing.js"></script>
/* 更换卡通小人 */
<script>
var observer = new MutationObserver(function(mutationsList, observer) {
var xpath = "/html/body/div/div/main/div[2]/section[1]/div[4]/div";
var container = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
if (container) {
observer.disconnect();
var existingImg = container.querySelector("img");
if (existingImg) {
container.removeChild(existingImg);
}
var imgElement = document.createElement("img");
imgElement.src = "https://cdn.skyimg.de/up/2025/1/13/zera6q.webp";
imgElement.style.position = "absolute";
imgElement.style.right = "8px";
imgElement.style.top = "-80px";
imgElement.style.zIndex = "10";
imgElement.style.width = "90px";
container.appendChild(imgElement);
}
});
var config = { childList: true, subtree: true };
observer.observe(document.body, config);
</script>

代码来自https://f5.pm/go-288695.html

哪吒监控 V1美化
https://blog.fis.ink/posts/3/
作者
fishcpy
发布于
2025-06-07
许可协议
CC BY-NC-SA 4.0