diff --git a/chatgpt-suno-tampermonkey.user.js b/chatgpt-suno-tampermonkey.user.js index 0f00fea..babb8ba 100644 --- a/chatgpt-suno-tampermonkey.user.js +++ b/chatgpt-suno-tampermonkey.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name ChatGPT to Suno Prompt Copier // @namespace local.suno-helper -// @version 0.1.1 +// @version 0.1.2 // @description Copy structured ChatGPT song prompt versions into Suno fields. // @author local // @match https://chatgpt.com/* @@ -23,6 +23,7 @@ const STORAGE_KEY = "chatgptSunoPromptPayload"; const isChatGPT = location.hostname.includes("chatgpt.com") || location.hostname.includes("chat.openai.com"); const isSuno = location.hostname === "suno.com" || location.hostname.endsWith(".suno.com"); + let chatRenderTimer = 0; const FIELD_DEFS = [ { key: "title", label: "Title", aliases: ["Title", "제목"] }, @@ -47,6 +48,15 @@ font: 13px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; overflow: hidden; } + #cgs-panel.cgs-chatgpt { + right: 18px; + top: 72px; + bottom: auto; + border-color: rgba(47, 124, 246, 0.55); + } + #cgs-panel.cgs-error { + border-color: rgba(255, 84, 84, 0.7); + } #cgs-panel * { box-sizing: border-box; } #cgs-panel.cgs-minimized .cgs-body { display: none; } .cgs-head { @@ -102,12 +112,13 @@ } `); - function createPanel(title) { + function createPanel(title, mode = "") { const old = document.querySelector("#cgs-panel"); if (old) old.remove(); const panel = document.createElement("section"); panel.id = "cgs-panel"; + if (mode) panel.classList.add(mode); panel.innerHTML = `