Skip to content

Instantly share code, notes, and snippets.

@webhacking
Created September 10, 2018 13:04
Show Gist options
  • Save webhacking/8f976417f23f9fd29e1dd54a555df347 to your computer and use it in GitHub Desktop.
Save webhacking/8f976417f23f9fd29e1dd54a555df347 to your computer and use it in GitHub Desktop.
Easily get toeic words using js
let translate = "";
const nodes = document.querySelectorAll('.SetPage-term');
nodes.forEach(node => {
const en = `#${node.querySelector('.TermText.lang-en').textContent}`;
const ko = `#${node.querySelector('.TermText.lang-ko').textContent}`;
translate += `${en} ${ko}\n`;
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment