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