Skip to content

Instantly share code, notes, and snippets.

@ahnl
Created December 5, 2020 20:07
Show Gist options
  • Save ahnl/99a6707b9636d08f510de0e547c00de8 to your computer and use it in GitHub Desktop.
Save ahnl/99a6707b9636d08f510de0e547c00de8 to your computer and use it in GitHub Desktop.
Vauva.fi automaattinen bottivarmistuksen täyttäminen
document.getElementById('edit-captcha-questions-answer-given').value = document.getElementsByName('captcha_questions_question')[0].value.split(' ').map(a => ['nolla', 'yksi', 'kaksi', 'kolme', 'neljä', 'viisi', 'kuusi', 'seitsemän', 'kahdeksan', 'yhdeksän'].indexOf(a)).join('');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment