Skip to content

Instantly share code, notes, and snippets.

@deadcoder0904
Created July 12, 2017 10:42
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 deadcoder0904/4b50f76c427cc056e61f1afd0f427a10 to your computer and use it in GitHub Desktop.
Save deadcoder0904/4b50f76c427cc056e61f1afd0f427a10 to your computer and use it in GitHub Desktop.
Keywords Everywhere get only keywords in an array format
var sorting = document.querySelectorAll('td');
var keywords = [];
sorting.forEach((keyword, i) => {
if((i - 1) % 8 === 0) keywords.push(keyword.innerHTML);
});
console.log(JSON.stringify(keywords, null, 2));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment