Namebase generator for 1000mostcommonwords.com
unknown
javascript
4 years ago
525 B
71
Indexable
//Get table with words: var table = document.querySelector('.entry-content table tbody'); var rows = table.children; //Create empty namebase: var namebase = ''; //Loop through every row, and add the content of the second cell to the namebase: for (var i = 1; i < rows.length; i++) { var row = rows[i]; var word = row.children[1].textContext || row.children[1].innerText; namebase += word + ', '; } var prompt = window.prompt("Paste the following namebase in a notepad or a safe place for future use:", namebase);
Editor is loading...