返回列表 发布新帖
查看: 12|回复: 0

[闲聊] 哪吒探针美化分享

灌水成绩
144
7
1192
主题
回帖
积分

等级头衔
U I D : 8
等级 : Lv.14

积分成就
贡献 : 491
金钱 : 16250
在线时间 : 37 小时
注册时间 : 2024-11-24
最后登录 : 2025-4-19

荣誉勋章

2024万圣节纪念币杰出贡献纪念币种子用户纪念币2024龙年纪念币2025蛇年纪念币

发表于 5 天前 | 查看全部 |阅读模式
预览


美化代码
来源:https://www.nodeseek.com/post-311746-1
  1. <script>
  2.     /* 这部分这几个挂在 window 下的变量是哪吒内置的, 详见 https://nezha.wiki/guide/settings.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E4%BB%A3%E7%A0%81 */
  3.     window.CustomBackgroundImage = 'https://r2.369069.xyz/20250414_8d62ff03.jpg'; /* PC 端背景图 */
  4.     window.CustomMobileBackgroundImage = 'https://img.xiny.cc/images/original/portrait/20250327_035423_4992.jpg'; /* 移动端背景图 */
  5.     window.CustomLogo = 'https://xiny.cc/xiny/favicon.ico'; /* 页面左上角和标题栏展示的 Logo */
  6.     window.CustomDesc = 'XINY'; /* 页面左上角副标题 */
  7.     window.ShowNetTransfer = true; /* 服务器卡片是否显示上下行流量, 默认不显示 */
  8.     window.DisableAnimatedMan = true;
  9.     window.FixedTopServerName = true; /* 是否固定顶部显示服务器名称, 默认不固定 */
  10.     window.CustomLinks = '[{"link":"https://xiny.cc/","name":"首页"},{"link":"https://blog.xiny.cc/","name":"博客"}]'; /* 自定义导航栏链接 */

  11.     /* 自定义字体, 注意需要同步修改下方 CSS 中的 font-family */
  12.     var link = document.createElement('link');
  13.     link.rel = 'stylesheet';
  14.     link.href = 'https://font.sec.miui.com/font/css?family=MiSans:400,700:MiSans'; // MiSans
  15.     // link.href = 'https://npm.elemecdn.com/lxgw-wenkai-screen-webfont@1.7.0/style.css'; // 霞鹜文楷, font-family: 'LXGW WenKai Screen'
  16.     document.head.appendChild(link);
  17. </script>
  18. <style>
  19.     /* 自定义字体 */
  20.     * {
  21.         font-family: 'MiSans';
  22.     }
  23.     h1, h2, h3, h4, h5 {
  24.         font-family: 'MiSans', sans-serif;
  25.     }

  26.     /* 背景压暗和模糊, 开了背景图建议开启 */
  27.     .dark .bg-cover::after {
  28.         content: '';
  29.         position: absolute;
  30.         inset: 0;
  31.         backdrop-filter: blur(6px);
  32.         background-color: rgba(0, 0, 0, 0);
  33.     }
  34.     .light .bg-cover::after {
  35.         content: '';
  36.         position: absolute;
  37.         inset: 0;
  38.         backdrop-filter: blur(6px);
  39.         background-color: rgba(255, 255, 255, 0.1);
  40.     }

  41.     footer {
  42.         display: none;
  43.     }
  44. </style>
复制代码
服务器卡片下方显示周期性流量见给哪吒V1探针面板添加周期流量显示

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

服务支持

社区监狱 封禁类型
投诉/建议联系

fankui@shequla.com

未经授权禁止转载,复制和建立镜像
如有违反,追究法律责任
  • 微信公众号
  • 哔哩哔哩
Copyright © 2001-2025 社区啦 - 小众的中文社区 版权所有 All Rights Reserved. |网站地图 冀ICP备2022019298号
关灯 在本版发帖
手机扫一扫访问
官方Q群返回顶部
快速回复 返回顶部 返回列表