Skip to content

Instantly share code, notes, and snippets.

@idkrn123
Last active June 28, 2024 14:35
Show Gist options
  • Save idkrn123/3d7c8db221894668efad62a113555911 to your computer and use it in GitHub Desktop.
Save idkrn123/3d7c8db221894668efad62a113555911 to your computer and use it in GitHub Desktop.
run in console - grabs domain names from table. (i'm using this along with gpt for an experiment in automated domaining :^D)
let rows = document.querySelectorAll('.base1 tbody tr');
let domains = [];
for (let row of rows) {
let domain = row.querySelector('.field_domain a').textContent;
domains.push(domain);
}
console.log(domains.join('\n'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment