哪吒探针V1美化

哪吒探针V1美化

自定义代码分享

前言,本篇教程参考来源 https://www.nodeseek.com/post-223592-1

探针背景图片和特效

<script>
window.CustomBackgroundImage="图片URL"; /* 页面背景图 */
</script>

<script src="https://cdn.jsdelivr.net/gh/mocchen/cssmeihua/js/aixin.js"></script>/* 点击爱心特效 */

<script src="https://cdn.jsdelivr.net/gh/mocchen/cssmeihua/js/yinghua.js"></script>/* 页面樱花效果 */

<span class="js-cursor-container"></span>
<script src="https://cdn.jsdelivr.net/gh/mocchen/cssmeihua/js/xiaoxingxing.js"></script>
/* 以上鼠标特效 */

换卡通小人,出处是

https://www.nodeseek.com/post-221811-1

当然也可以用哪吒官方的

https://nezhadash-docs.buycoffee.top/custom-code

不过我觉得论坛佬的更好,可以随意调整大小

<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 = "图片URL";
        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>

上下行流量、logo、描述

<script>
    window.CustomLogo = "图片URL"; /* 自定义Logo */
    window.ShowNetTransfer  = "true"; /* 卡片显示上下行流量 */
    window.DisableAnimatedMan  = "true"; /* 关掉动画人物插图 */
    window.CustomDesc ="MJJ:白嫖至上,技术先行"; /* 自定义描述 */
</script>

官方1.2.7版本新增手机版背景图自定义

<script> window.CustomMobileBackgroundImage="https://img.028029.xyz/1734591983003.png";
</script>

公开备注生成

https://nezhainfojson.pages.dev/

移除页脚符号

<style>kbd.bg-muted {  /* 移除页脚右键盘符号及字母 */display: none !important;}</style>

LICENSED UNDER CC BY-NC-SA 4.0
Comment