Created
May 30, 2021 13:00
-
-
Save korzo/c74f36ccd2e1e15984788e2d87af5a3d to your computer and use it in GitHub Desktop.
Typingclub.com extract exercise text
This file contains hidden or 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
[...document.querySelectorAll(".token_unit").entries()].map(e => e[1].innerText).map(e => { | |
if(!e.trim()) { | |
return " "; | |
} | |
return e; | |
}).join(""); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment