Skip to content

Instantly share code, notes, and snippets.

@tyage
Last active March 31, 2024 08:50
Show Gist options
  • Save tyage/c90b5aaf6b3346f185e38621db9d46ed to your computer and use it in GitHub Desktop.
Save tyage/c90b5aaf6b3346f185e38621db9d46ed to your computer and use it in GitHub Desktop.
meisai = [...document.querySelectorAll('#meisaiTable tbody tr')]
.filter(tr => tr.id === '')
.map(tr => [...tr.querySelectorAll('td')])
.map(tds => {
const date = tds[1].textContent
const content = tds[2].textContent
const price = tds[7].textContent.replaceAll(/\s/gi, '')
return `${date}\t${content}\t\tクレジットカード:ANAゴールドカード\t${price}`
})
.join('\n')
copy(meisai)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment