<!-- ✅ 自动点击按钮并显示隐藏卡片 -->
<script>
const selectorButton = '#root > div > main > div.mx-auto.w-full.max-w-5xl.px-0.flex.flex-col.gap-4.server-info > section > div.flex.justify-center.w-full.max-w-\\[200px\\] > div > div > div.relative.cursor-pointer.rounded-3xl.px-2\\.5.py-\\[8px\\].text-\\[13px\\].font-\\[600\\].transition-all.duration-500.text-stone-400.dark\\:text-stone-500';
const selectorSection = '#root > div > main > div.mx-auto.w-full.max-w-5xl.px-0.flex.flex-col.gap-4.server-info > section';
const selector3 = '#root > div > main > div.mx-auto.w-full.max-w-5xl.px-0.flex.flex-col.gap-4.server-info > div:nth-child(3)';
const selector4 = '#root > div > main > div.mx-auto.w-full.max-w-5xl.px-0.flex.flex-col.gap-4.server-info > div:nth-child(4)';
let hasClicked = false;
let divVisible = false;
let swapping = false;
function forceBothVisible() {
const div3 = document.querySelector(selector3);
const div4 = document.querySelector(selector4);
if (div3 && div4) {
div3.style.display = 'block';
div4.style.display = 'block';
}
}
function hideSection() {
const section = document.querySelector(selectorSection);
if (section) {
section.style.display = 'none';
}
}
function tryClickButton() {
const btn = document.querySelector(selectorButton);
if (btn && !hasClicked) {
btn.click();
hasClicked = true;
setTimeout(forceBothVisible, 500);
}
}
function swapDiv3AndDiv4() {
if (swapping) return;
swapping = true;
const div3 = document.querySelector(selector3);
const div4 = document.querySelector(selector4);
if (!div3 || !div4) {
swapping = false;
return;
}
const parent = div3.parentNode;
if (parent !== div4.parentNode) {
swapping = false;
return;
}
// 交换 div3 和 div4 的位置
parent.insertBefore(div4, div3);
parent.insertBefore(div3, div4.nextSibling);
swapping = false;
}
const observer = new MutationObserver(() => {
const div3 = document.querySelector(selector3);
const div4 = document.querySelector(selector4);
const isDiv3Visible = div3 && getComputedStyle(div3).display !== 'none';
const isDiv4Visible = div4 && getComputedStyle(div4).display !== 'none';
const isAnyDivVisible = isDiv3Visible || isDiv4Visible;
if (isAnyDivVisible && !divVisible) {
hideSection();
tryClickButton();
setTimeout(swapDiv3AndDiv4, 100);
} else if (!isAnyDivVisible && divVisible) {
hasClicked = false;
}
divVisible = isAnyDivVisible;
if (div3 && div4) {
if (!isDiv3Visible || !isDiv4Visible) {
forceBothVisible();
}
}
});
const root = document.querySelector('#root');
if (root) {
observer.observe(root, {
childList: true,
attributes: true,
subtree: true,
attributeFilter: ['style', 'class']
});
}
</script>
<!-- ✅ 基础设置与自定义属性 -->
<script>
window.CustomBackgroundImage="https://img.pool.dpdns.org/"; /* 页面背景图https://xxq.dpdns.org/或https://1oo.dpdns.org/或https://img.freemjj.news/或https://img.9527.nyc.mn/或https://188771.xyz/img/或https://img.pool.dpdns.org/或https://img.eyei.eu.org/ */
window.$$nazhuaConfig = {
hideWorldMap: false,
};
window.ShowNetTransfer = "true"; /* 卡片显示上下行流量 */
window.DisableAnimatedMan = "true"; /* 关掉动画人物插图 */
window.CustomDesc ="『MJJ:白嫖至上,低价优先』"; /* 自定义描述 */
window.CustomLinks =
'[{"link":"https://vps.211119.xyz/","name":"VPS信息"}, {"link":"https://www.199881.xyz/","name":"导航"}, {"link":"https://boke.199881.xyz/","name":"博客"}]'
window.ForceTheme = 'light'
</script>
<link rel="stylesheet" href="//at.alicdn.com/t/c/font_4956031_5kxc4fexu39.css" />
<script src="https://cdn.jsdelivr.net/gh/kamanfaiz/Nezha-Dash-UI@main/js/music-player.js?v=20250128"></script>