Hide login account text in custom2.js

This commit is contained in:
Nathan Schneider committed 2026-10-18 22:10:12 -06:00
1 parent ff4078b08f
commit c8b7c7f87a
1 file changed
+16
+16
View File
@@ -0,0 +1,16 @@
// Auto-load saved image‑generation API key into the MCP input field.
// No prompt is shown; if a key is stored in localStorage it is auto‑filled.
window.addEventListener('load', () => {
const savedKey = localStorage.getItem('image_api_key');
if (savedKey) {
const icInput = document.querySelector('input[name=\"IC_API_KEY\"]');
if (icInput) icInput.value = savedKey;
}
// Hide "Don't have an account?" text on the login page
const nodes = document.querySelectorAll('p, span, div');
nodes.forEach(node => {
if (node.textContent && node.textContent.includes("Don't have an account")) {
node.style.display = 'none';
}
});
});