From c8b7c7f87a328e2319f45479f395c00b700e17ca Mon Sep 17 00:00:00 2001 From: Nathan Schneider Date: Sun, 18 Oct 2026 22:10:12 -0600 Subject: [PATCH] Hide login account text in custom2.js --- assets/custom2.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 assets/custom2.js diff --git a/assets/custom2.js b/assets/custom2.js new file mode 100644 index 0000000..bdb7d8d --- /dev/null +++ b/assets/custom2.js @@ -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'; + } + }); +}); \ No newline at end of file