Skip to content

Instantly share code, notes, and snippets.

@ViliamKopecky
Last active October 4, 2022 14:22
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 ViliamKopecky/13f6d4a1857a489f23ecc1c6a01b6a38 to your computer and use it in GitHub Desktop.
Save ViliamKopecky/13f6d4a1857a489f23ecc1c6a01b6a38 to your computer and use it in GitHub Desktop.
Mailgun: get DNS config in plaintext
console.log(
[...document.querySelectorAll('tr')]
.map((tr) =>
[...tr.querySelectorAll('td:not(:last-child):not(:first-child)')]
.map((el) => `${el.textContent}`)
.join(' ')
.trim()
)
.filter(Boolean)
.join('\n\n')
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment