document.addEventListener("DOMContentLoaded",function(){var f=function(){document.querySelectorAll("footer,a,div,p,span").forEach(function(e){var t=(e.textContent||"");var h=(e.getAttribute&&e.getAttribute("href"))||"";if(/powered\s*by/i.test(t)||/cloudreve\.org|github\.com|tailscale/i.test(h)){e.style.display="none"}});document.querySelectorAll("h1,h2,h3,p,a,button,span").forEach(function(e){if(e.children.length===0){var m={"Page not found":"页面不存在","Back to homepage":"回到首页","Sign in":"登录","Sign out":"退出登录"};var k=(e.textContent||"").trim();if(m[k]){e.textContent=m[k]}}});};f();new MutationObserver(f).observe(document.body,{childList:true,subtree:true});});