mirror of
https://github.com/System-End/Scrapyard.git
synced 2026-04-19 22:05:16 +00:00
CORS is hell
This commit is contained in:
parent
ce26fae26a
commit
0b5c5539c6
1 changed files with 2 additions and 2 deletions
|
|
@ -65,7 +65,7 @@
|
|||
}
|
||||
function insult(failReason) {
|
||||
document.getElementById("support").innerHTML = "Pending reply from support..."
|
||||
fetch('https://ai.hackclub.com/chat/completions', {method: 'POST',headers: {'Content-Type': 'application/json'},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. Use HTML for formatting, not markdown. You should return a single \`<p>\` element, though you can have extra italic/bold/etc elements within. Exclude the \`<p>\` 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://corsproxy.io/?url=https://ai.hackclub.com/chat/completions', {method: 'POST',headers: {'Content-Type': 'application/json'},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. Use HTML for formatting, not markdown. You should return a single \`<p>\` element, though you can have extra italic/bold/etc elements within. Exclude the \`<p>\` 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();
|
||||
|
|
@ -210,5 +210,5 @@
|
|||
</div>
|
||||
</body>
|
||||
<footer>
|
||||
<p>Made because we hate websites that work normally <3<br/>V.0.0.21<br/>Made by <a href="https://endoftimee.tech">EndOfTimee</a> and <a href="https://firepup650.com">Firepup650</a></p>
|
||||
<p>Made because we hate websites that work normally <3<br/>V.0.0.22<br/>Made by <a href="https://endoftimee.tech">EndOfTimee</a> and <a href="https://firepup650.com">Firepup650</a></p>
|
||||
</footer>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue