From fa2c9e8b2d4a40258d01685c8856b63edf867911 Mon Sep 17 00:00:00 2001 From: "DESKTOP-KSVGT20\\shkim" Date: Sat, 2 May 2026 00:21:24 +0900 Subject: [PATCH] Handle redirected Suno WAV responses --- chatgpt-suno-tampermonkey.user.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/chatgpt-suno-tampermonkey.user.js b/chatgpt-suno-tampermonkey.user.js index ddcf3dd..b9f4882 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.7.4 +// @version 0.7.5 // @description Copy structured ChatGPT song prompt versions into Suno fields. // @author local // @match https://chatgpt.com/* @@ -27,7 +27,7 @@ (function () { "use strict"; - const SCRIPT_VERSION = "0.7.4"; + const SCRIPT_VERSION = "0.7.5"; const STORAGE_KEY = "chatgptSunoPromptSlots"; const SLOT_COUNT = 2; const isChatGPT = location.hostname.includes("chatgpt.com") || location.hostname.includes("chat.openai.com"); @@ -827,6 +827,9 @@ ...(options.headers || {}), }, }); + const finalUrl = response.url || url; + const finalWavUrl = extractWavUrl(finalUrl); + if (response.ok && finalWavUrl) return finalWavUrl; const text = await response.text(); const data = tryParseJson(text) || text; rememberSunoResponse(url, data);