Last active
November 15, 2019 22:26
-
-
Save lightdiscord/4d779bc49799a1204a5a678fe59254dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => { | |
const words = [...document.querySelector('#words').firstChild.children].map(child => child.innerText); | |
const input = document.querySelector('#inputfield'); | |
words.forEach(word => { | |
input.value = word; | |
input.dispatchEvent(new KeyboardEvent('keyup', { keyCode: 32, which: 32 })); | |
}); | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment