Skip to content

Instantly share code, notes, and snippets.

@atlc
Created May 5, 2022 22:14
Show Gist options
  • Save atlc/0621132e81356c64581d5952df07c90c to your computer and use it in GitHub Desktop.
Save atlc/0621132e81356c64581d5952df07c90c to your computer and use it in GitHub Desktop.
javascript:(() => { const solution = JSON.parse(localStorage.getItem("nyt-wordle-state")).solution; const realDoc = document.body.lastElementChild["$keyboard"]["$keyboard"]; [...solution].forEach(char => { const button = realDoc.querySelector(`button[data-key="${char}"]`); button.click() }); const enter = realDoc.querySelector(`button[data-key="%E2%86%B5"]`); enter.click(); })()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment