From 0cdb412ef5dd95e29514824be3b28dad9288b295 Mon Sep 17 00:00:00 2001 From: "DESKTOP-KSVGT20\\shkim" Date: Sat, 2 May 2026 01:05:18 +0900 Subject: [PATCH] Prefer Tampermonkey requests for Suno APIs --- 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 74c93e6..08c90c4 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.8.4 +// @version 0.8.5 // @description Copy structured ChatGPT song prompt versions into Suno fields. // @author local // @match https://chatgpt.com/* @@ -28,7 +28,7 @@ (function () { "use strict"; - const SCRIPT_VERSION = "0.8.4"; + const SCRIPT_VERSION = "0.8.5"; const STORAGE_KEY = "chatgptSunoPromptSlots"; const SLOT_COUNT = 2; const isChatGPT = location.hostname.includes("chatgpt.com") || location.hostname.includes("chat.openai.com"); @@ -864,6 +864,9 @@ ...(options.method && options.method !== "GET" && options.method !== "HEAD" ? { "content-type": "application/json" } : {}), ...(options.headers || {}), }; + if (typeof GM_xmlhttpRequest === "function" && /^https?:\/\/[^/]*suno\./i.test(url)) { + return callTampermonkeyRequest(url, { ...options, headers }); + } try { const response = await page.fetch(url, { credentials: "include",