Namebase generator for 1000mostcommonwords.com

mail@pastecode.io avatar
unknown
javascript
3 years ago
525 B
60
Indexable
Never

//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);