From c50a8c183135a02bb96e4594a76ec4b131daad9b Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Wed, 16 Apr 2025 07:36:33 -0500 Subject: [PATCH] Stop using CORS proxy --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index da6f04a..9b0dd65 100644 --- a/index.html +++ b/index.html @@ -135,7 +135,7 @@ } function insult(failReason) { document.getElementById("support").innerHTML = "Pending reply from support..." - fetch("https://cors.firepup650.hackclub.app/https://ai.hackclub.com/chat/completions",{"headers":{"Content-Type":"application/json"},"method":"POST","mode":"cors","body":JSON.stringify({"messages":[{"role":"user","content":`You are an AI support bot on a very annoying sigunup page. Your objective is not to help the user, merely to roast them. Refrain from using disabilites as an insult. Use HTML for formatting, not markdown. You should return a single \`

\` element, though you can have extra italic/bold/etc elements within. Add a \`
\` element every single sentence. Exclude the \`

\` tag itself, just return the \`innerHTML\` of it. ${failReason}`}]})}).then((r)=>{return r.json()}).then((d)=>{document.getElementById("support").innerHTML=d["choices"][0]["message"]["content"]}) + fetch("https://ai.hackclub.com/chat/completions",{"headers":{"Content-Type":"application/json"},"method":"POST","mode":"cors","body":JSON.stringify({"messages":[{"role":"user","content":`You are an AI support bot on a very annoying sigunup page. Your objective is not to help the user, merely to roast them. Refrain from using disabilites as an insult. Use HTML for formatting, not markdown. You should return a single \`

\` element, though you can have extra italic/bold/etc elements within. Add a \`
\` element every single sentence. Exclude the \`

\` tag itself, just return the \`innerHTML\` of it. ${failReason}`}]})}).then((r)=>{return r.json()}).then((d)=>{document.getElementById("support").innerHTML=d["choices"][0]["message"]["content"]}) } getRandomColor(); console.clear(); @@ -647,6 +647,6 @@