✏️ 修改剪贴板内容
备注标题
具体内容
<style> /* 彻底清除黑屏,露出背景 */ :root, [data-theme='dark'], [data-theme='light'] { --background: transparent !important; } html, body, main, #root, .bg-background { background-color: transparent !important; background-image: none !important; } /* 全局背景图:保留你满意的绝美动漫樱花图 */ body::before { content: ""; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: url("https://img.003666.xyz/2025/05/24/141a91d4cba94b49001.webp") no-repeat center center fixed !important; background-size: cover !important; z-index: -999; } /* 完美的深色半透明玻璃卡片样式,并把默认黑字改白以免看不清 */ .rounded-xl, .rounded-lg { background-color: rgba(20, 20, 20, 0.6) !important; backdrop-filter: blur(8px) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; color: #f1f1f1 !important; } .text-foreground, .text-muted-foreground { color: #f1f1f1 !important; } /* 让“服务器总数”卡片边框表现与在线/离线一致 */ .border, .border-border, .border-solid { border-width: 1px !important; border-style: solid !important; border-color: rgba(255, 255, 255, 0.1) !important; } /* 隐藏残留的默认骰子头像 */ img[src*="dicebear"] { display: none !important; } /* ================= 你的原版播放器与面板样式(一字不改) ================= */ #music-player { position: fixed; top: 2.65rem; left: 20px; width: 22rem; transform: none; display: flex; gap: 4px; align-items: center; z-index: 1000; } #music-player button { padding: 2px 6px; background: none; border: 0px solid #555; border-radius: 3px; color: #fff; cursor: pointer; font-size: 13px; line-height: 1; } #music-player button:hover { background: rgba(255,255,255,0.1); } #song-info { color: #fff; font-family: Arial, sans-serif; font-size: 13px; margin-left: 8px; max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #custom-ip-widget { position: fixed; bottom: 20px; right: 20px; z-index: 9999; background-color: rgba(20, 20, 20, 0.6) !important; backdrop-filter: blur(8px) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; border-radius: 12px; padding: 15px 20px; color: #eee; font-size: 13px; line-height: 1.8; box-shadow: 0 4px 10px rgba(0,0,0,0.4); display: flex; flex-direction: column; gap: 6px; transition: all 0.3s ease; font-family: 'MiSans', sans-serif; } #custom-ip-widget:hover { background-color: rgba(20, 20, 20, 0.7) !important; } .ip-item { display: flex; align-items: center; } .ip-highlight { color: #ff6b81; font-weight: bold; margin: 0 4px; } </style> <script> (function() { // 1. 基础配置与引入外部资源 window.DisableAnimatedMan = true; window.ShowNetTransfer = true; window.FixedTopServerName = true; window.CustomLogo = "https://i.imgs.ovh/2025/03/01/7BxIr.png"; const fontLink = document.createElement('link'); fontLink.href = "https://font.sec.miui.com/font/css?family=MiSans:400,700:MiSans"; fontLink.rel = "stylesheet"; document.head.appendChild(fontLink); const aixinScript = document.createElement('script'); aixinScript.src = "https://cdn.jsdelivr.net/gh/mocchen/cssmeihua/js/aixin.js"; document.head.appendChild(aixinScript); const xingxingScript = document.createElement('script'); xingxingScript.src = "https://cdn.jsdelivr.net/gh/mocchen/cssmeihua/js/xiaoxingxing.js"; document.head.appendChild(xingxingScript); // 2. 全部原版音乐列表 const songs = [ { title: "Someone you loved", src: "https://music.gvrander.eu.org/music/Someone%20you%20loved-%E4%B8%83%E5%85%83.mp3" }, { title: "嘉禾望岗-海来阿木", src: "https://music.gvrander.eu.org/music/%E5%98%89%E7%A6%BE%E6%9C%9B%E5%B2%97-%E6%B5%B7%E6%9D%A5%E9%98%BF%E6%9C%A8.flac" }, { title: "座位-承桓", src: "https://music.gvrander.eu.org/music/%E5%BA%A7%E4%BD%8D-%E6%89%BF%E6%A1%93.mp3" }, { title: "这世界那么多人-莫文蔚", src: "https://music.gvrander.eu.org/music/这世界那么多人-莫文蔚.mp3" }, { title: "直到遇见了你_我只喜欢你-陈柯宇", src: "https://music.gvrander.eu.org/music/直到遇见了你,我只喜欢你-陈柯宇.mp3" }, { title: "Way back home-Conor Maynard", src: "https://music.gvrander.eu.org/music/Way%20back%20home-Conor%20Maynard.mp3" }, { title: "其实都没有-于冬然", src: "https://music.gvrander.eu.org/music/其实都没有-于冬然.mp3" }, { title: "西楼儿女-海来阿木", src: "https://music.gvrander.eu.org/music/西楼儿女-海来阿木.flac" }, { title: "年少有为-李荣浩", src: "https://music.gvrander.eu.org/music/年少有为-李荣浩.flac" }, { title: "若月亮没还没来-王宇宙Leto 乔浚丞", src: "https://music.gvrander.eu.org/music/若月亮没还没来-王宇宙Leto 乔浚丞.mp3" }, { title: "说好不哭-周杰伦(with五月天阿信)", src: "https://music.gvrander.eu.org/music/说好不哭-周杰伦with阿信.flac" }, { title: "别对我说-Lancelot_兰斯洛", src: "https://music.gvrander.eu.org/music/别对我说-Lancelot_兰斯洛.flac" }, { title: "不如见一面-海来阿木", src: "https://music.gvrander.eu.org/music/不如见一面-海来阿木.mp3" }, { title: "长大成人 - 范茹", src: "https://music.gvrander.eu.org/music/长大成人 - 范茹.wav" }, { title: "飞鸟和蝉-任然", src: "https://music.gvrander.eu.org/music/飞鸟和蝉-任然.mp3" }, { title: "曾经你说-赵乃吉", src: "https://music.gvrander.eu.org/music/曾经你说-赵乃吉.mp3" }, { title: "善变-王靖雯不胖", src: "https://music.gvrander.eu.org/music/善变-王靖雯不胖.mp3" }, { title: "起风了-买辣椒也用券", src: "https://music.gvrander.eu.org/music/起风了-买辣椒也用券.mp3" }, { title: "你的答案-阿冗", src: "https://music.gvrander.eu.org/music/你的答案-阿冗.mp3" }, { title: "海阔天空-Beyond", src: "https://music.gvrander.eu.org/music/海阔天空-Beyond.mp3" }, { title: "你爱我坏-小鬼阿秋", src: "https://music.gvrander.eu.org/music/你爱我坏-小鬼阿秋.mp3" }, { title: "无人之岛-任然", src: "https://music.gvrander.eu.org/music/无人之岛-任然.mp3" }, { title: "明明就-周杰伦", src: "https://music.gvrander.eu.org/music/明明就-周杰伦.flac" }, { title: "从前说-小阿七", src: "https://music.gvrander.eu.org/music/从前说-小阿七.mp3" }, { title: "后继者-任然", src: "https://music.gvrander.eu.org/music/后继者-任然.mp3" }, { title: "水星记-郭顶", src: "https://music.gvrander.eu.org/music/水星记-郭顶.mp3" }, { title: "嘉宾-张远", src: "https://music.gvrander.eu.org/music/嘉宾-张远.mp3" }, { title: "值得-半吨兄弟", src: "https://music.gvrander.eu.org/music/值得-半吨兄弟.wav" }, { title: "诺言-海来阿木", src: "https://music.gvrander.eu.org/music/诺言-海来阿木.mp3" }, { title: "Something Just Like This-Alex Goot", src: "https://music.gvrander.eu.org/music/Something Just Like This - Alex Goot.mp3" }, { title: "可能-程响", src: "https://music.gvrander.eu.org/music/可能-程响.mp3" }, { title: "成都-赵雷", src: "https://music.gvrander.eu.org/music/成都-赵雷.mp3" }, { title: "最后一页-江语晨", src: "https://music.gvrander.eu.org/music/最后一页-江语晨.mp3" }, { title: "搁浅-周杰伦", src: "https://music.gvrander.eu.org/music/搁浅-周杰伦.flac" }, { title: "诺言-郭有才", src: "https://music.gvrander.eu.org/music/诺言-郭有才.mp3" }, { title: "起风了 - 吴青峰", src: "https://music.gvrander.eu.org/music/起风了 - 吴青峰.wav" }, { title: "修炼爱情-林俊杰", src: "https://music.gvrander.eu.org/music/修炼爱情-林俊杰.mp3" }, { title: "晴天 - 周杰伦", src: "https://music.gvrander.eu.org/music/晴天 - 周杰伦.mp3" }, { title: "Dream it possible", src: "https://music.gvrander.eu.org/music/Dream It Possible-Delacey.mp3" }, { title: "爱笑的眼睛-林俊杰", src: "https://music.gvrander.eu.org/music/爱笑的眼睛-林俊杰.mp3" }, { title: "风吹过八千里-苏星婕", src: "https://music.gvrander.eu.org/music/风吹过八千里-苏星婕.mp3" }, { title: "See you again-Wiz Khalifa", src: "https://music.gvrander.eu.org/music/See you again-Wiz Khalifa.mp3" }, { title: "最长的电影-周杰伦", src: "https://music.gvrander.eu.org/music/最长的电影-周杰伦.mp3" } ]; let currentSongIndex = 0; let audio = new Audio(); let isPlaying = false; audio.preload = "auto"; audio.addEventListener('ended', () => { currentSongIndex = (currentSongIndex + 1) % songs.length; loadAndPlay(true); }); audio.addEventListener('play', () => { isPlaying = true; updateUI(); }); audio.addEventListener('pause', () => { isPlaying = false; updateUI(); }); function updateUI() { const btn = document.getElementById('play-pause'); if (btn) { btn.innerHTML = isPlaying ? '⏸' : '▶'; btn.title = isPlaying ? '暂停' : '播放'; } const info = document.getElementById('song-info'); if (info) info.textContent = songs[currentSongIndex].title; } async function loadAndPlay(autoplay = true) { if(audio.src !== songs[currentSongIndex].src) { audio.src = songs[currentSongIndex].src; } updateUI(); if(autoplay) { try { await audio.play(); } catch (err) { const info = document.getElementById('song-info'); if (info) info.textContent = '点击播放按钮播放'; } } } // 3. 构建访客 IP 面板内容 const ua = navigator.userAgent; let os = "未知系统"; if (/windows nt 10.0/i.test(ua)) os = "Windows 10/11"; else if (/windows nt 6.3/i.test(ua)) os = "Windows 8.1"; else if (/windows nt 6.2/i.test(ua)) os = "Windows 8"; else if (/windows nt 6.1/i.test(ua)) os = "Windows 7"; else if (/mac os x/i.test(ua)) os = "Mac OS"; else if (/android/i.test(ua)) os = "Android"; else if (/linux/i.test(ua)) os = "Linux"; else if (/iphone|ipad|ipod/i.test(ua)) os = "iOS"; let browser = "未知浏览器"; let version = ""; if (/Edg\//.test(ua)) { browser = "Edge"; version = ua.match(/Edg\/([\d.]+)/)[1]; } else if (/Chrome\//.test(ua)) { browser = "Chrome"; version = ua.match(/Chrome\/([\d.]+)/)[1]; } else if (/Firefox\//.test(ua)) { browser = "Firefox"; version = ua.match(/Firefox\/([\d.]+)/)[1]; } else if (/Safari\//.test(ua) && !/Chrome\//.test(ua)) { browser = "Safari"; version = ua.match(/Version\/([\d.]+)/)[1]; } const date = new Date(); const weeks = ['日', '一', '二', '三', '四', '五', '六']; const dateStr = `${date.getFullYear()}年${String(date.getMonth() + 1).padStart(2, '0')}月${String(date.getDate()).padStart(2, '0')}日 星期${weeks[date.getDay()]}`; async function fetchIPData() { let fIP = '获取中...', fLoc = '获取中...'; try { let res = await fetch('https://qifu-api.baidubce.com/ip/local/geo/v1/district'); let data = await res.json(); if(data.code === 'Success' && data.data.country) { fIP = data.data.ip; fLoc = (data.data.country + " " + (data.data.prov || "")).trim(); } else throw new Error('API 1 Fail'); } catch(e) { try { let res2 = await fetch('https://api.ip.sb/geoip'); let data2 = await res2.json(); fIP = data2.ip || '未知'; fLoc = data2.country || '未知地区'; } catch(e2) { fIP = '获取失败'; fLoc = '火星'; } } const ipAddr = document.getElementById('ip-addr'); const ipLoc = document.getElementById('ip-loc'); if(ipAddr) ipAddr.innerText = fIP; if(ipLoc) ipLoc.innerText = fLoc; } // 4. 守护注入程序(终极防杀机制) function setupUI() { // 【核心秘籍】不要挂载到 body,而是挂载到 html!React 管不着这里! let safeZone = document.getElementById('nezha-safe-zone'); if (!safeZone) { safeZone = document.createElement('div'); safeZone.id = 'nezha-safe-zone'; document.documentElement.appendChild(safeZone); } if (!document.getElementById('music-player')) { const p = document.createElement('div'); p.id = 'music-player'; p.innerHTML = ` <button id="prev" title="上一首">◀◀</button> <button id="play-pause" title="播放">▶</button> <button id="next" title="下一首">▶▶</button> <span id="song-info"></span> `; safeZone.appendChild(p); document.getElementById("play-pause").onclick = () => { audio.paused ? audio.play() : audio.pause(); }; document.getElementById("next").onclick = () => { currentSongIndex = (currentSongIndex + 1) % songs.length; loadAndPlay(true); }; document.getElementById("prev").onclick = () => { currentSongIndex = (currentSongIndex - 1 + songs.length) % songs.length; loadAndPlay(true); }; loadAndPlay(false); } if (!document.getElementById('custom-ip-widget')) { const w = document.createElement('div'); w.id = 'custom-ip-widget'; w.innerHTML = ` <div class="ip-item">🏠 欢迎您来自 <span class="ip-highlight" id="ip-loc">获取中...</span> 的朋友</div> <div class="ip-item">📅 今天是 ${dateStr}</div> <div class="ip-item">💻 您的IP是: <span class="ip-highlight" id="ip-addr">获取中...</span></div> <div class="ip-item">🖥️ 您使用的是 ${os} 操作系统</div> <div class="ip-item">🌐 您使用的是 ${browser} ${version ? '('+version.split('.')[0]+')' : ''} 浏览器</div> `; safeZone.appendChild(w); fetchIPData(); } } // 暴力续命:每隔0.5秒检查一次,一旦被删立刻重建 setInterval(setupUI, 500); })(); </script>
保存修改
← 取消并返回列表