if (!footer) return;
function updateBeianVisibility() {
var app = document.getElementById('app');
if (!app) return;
var text = (app.innerText || '').toLowerCase();
var hasLoginSignal = !!app.querySelector('input[type="password"], input[autocomplete="current-password"]') || text.indexOf('??') !== -1 || text.indexOf('login') !== -1;
var hasAppSignal = !!app.querySelector('textarea, [contenteditable="true"], nav, aside') || text.indexOf('new chat') !== -1 || text.indexOf('settings') !== -1 || text.indexOf('??') !== -1;
footer.style.display = hasAppSignal && !hasLoginSignal ? 'none' : 'block';
}
var observer = new MutationObserver(updateBeianVisibility);
observer.observe(document.documentElement, { childList: true, subtree: true, characterData: true });
window.addEventListener('load', updateBeianVisibility);
setInterval(updateBeianVisibility, 1000);
updateBeianVisibility();
})();