Skip to content

Instantly share code, notes, and snippets.

@boehs
Last active June 23, 2023 02:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boehs/be3a8d4d9bb90e956d01824daca0f9b2 to your computer and use it in GitHub Desktop.
Save boehs/be3a8d4d9bb90e956d01824daca0f9b2 to your computer and use it in GitHub Desktop.
(quizlet|vocabulary.com) to seperated words
let words = document.querySelectorAll('.SetPageTerm-wordText');
[...document.querySelectorAll('.SetPageTerm-definitionText')].map((def,index) => def.textContent + " " + words[index].textContent).join('\n')
let words = document.querySelectorAll('.definition');
[...document.querySelectorAll('.word')].map((def,index) => def.textContent + " " + words[index].textContent).join('\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment