Skip to content

Instantly share code, notes, and snippets.

@wlib
Last active May 18, 2026 15:51
Show Gist options
  • Select an option

  • Save wlib/bfb90b1c7d243780aac708160d83b808 to your computer and use it in GitHub Desktop.

Select an option

Save wlib/bfb90b1c7d243780aac708160d83b808 to your computer and use it in GitHub Desktop.
javascript:fetch(`https://create.kahoot.it/rest/kahoots/${prompt("Paste the Kahoot ID")}/card/?includeKahoot=true`).then(res=>res.json()).then(json=>json.kahoot.questions.map((q,number)=>{const{choices}=q;for(let i=0;i<choices.length;i+=1){if(choices[i].correct){switch(i){case 0:return `Q${number+1}: red triangle - ${choices[i].answer }`;break;case 1:return `Q${number+1}: blue diamond - ${choices[i].answer }`;break;case 2:return `Q${number+1}: yellow circle - ${choices[i].answer }`;break;case 3:return `Q${number+1}: green square - ${choices[i].answer }`;break}}}}).join("\n")).then(answers=>open().document.body.innerText=answers);
fetch(`https://create.kahoot.it/rest/kahoots/${prompt("Paste the Kahoot ID")}/card/?includeKahoot=true`)
.then(res => res.json())
.then(json =>
json.kahoot.questions
.map((q, number) => {
const { choices } = q;
for (let i = 0; i < choices.length; i++) {
if (choices[i].correct) {
switch (i) {
case 0:
return `Q${number + 1}: red triangle - ${choices[i].answer}`;
break;
case 1:
return `Q${number + 1}: blue diamond - ${choices[i].answer}`;
break;
case 2:
return `Q${number + 1}: yellow circle - ${choices[i].answer}`;
break;
case 3:
return `Q${number + 1}: green square - ${choices[i].answer}`;
break;
}
}
}
})
.join("\n")
)
.then(answers => open().document.body.innerText = answers);
@Pxngs

Pxngs commented Jan 17, 2025

Copy link
Copy Markdown

lol

@sigmaPR0

Copy link
Copy Markdown

bruh.... just one dream and yet still broken. gotta find another

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment