Skip to content

Instantly share code, notes, and snippets.

@un-versed
Last active April 10, 2022 00:00
Show Gist options
  • Save un-versed/cc5027dd355866c986b76acf1f7c360e to your computer and use it in GitHub Desktop.
Save un-versed/cc5027dd355866c986b76acf1f7c360e to your computer and use it in GitHub Desktop.
Preguiça de adivinhar as palavras no term.ooo? Eu tenho a solução! 🤫🤫🤫

term.ooo cheat 🤫🤫🤫

Example

Como rodar?

  • Abra o devTools do seu navegador
  • Só copiar o código do termooo-solution.js e jogar na aba console

Prontinho, você tem a resposta da palavra do dia no term.ooo

Thumbs up

async function getWord() {
const words = await (
await fetch(
'https://gist.githubusercontent.com/un-versed/6373912fbf4649704b6823ea696cfcb1/raw/629137a0d0c7160b94c35013df8d570b31100174/termooo-wordsv2.json',
{ method: 'GET' }
)
).json()
const curDay = () => {
var a = new Date().setHours(0, 0, 0, 0)
return Math.floor((a - new Date(2022, 0, 2, 0, 0, 0, 0)) / 864e5)
}
const solution = words[curDay() % words.length]
alert(`The answer is: ${solution}`)
return solution
}
await getWord()
@brendondev
Copy link

brendondev commented Feb 17, 2022

Testem, aqui funcionou.

async function getWord() {
const words = await (
await fetch(
'https://gist.githubusercontent.com/un-versed/6373912fbf4649704b6823ea696cfcb1/raw/629137a0d0c7160b94c35013df8d570b31100174/termooo-wordsv2.json',
{ method: 'GET' }
)
).json()

const curDay = () => {

  var a = new Date().setHours(0, 0, 0, 0)

  return Math.floor((a - new Date(2021, 11, 29, 0, 0, 0, 0)) / 864e5)

}

const solution = words[curDay() % words.length]



alert(`The answer is: ${solution}`)



return solution

};

await getWord();

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