🥚
- forresthopkinsa.com (Currently indev)
- @forresthopkinsa
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const table = document.querySelector("#resultTable tbody"); | |
const rows = Array.from(table.children).map(({ children }) => Array.from(children).map((c) => c.innerText)); | |
const output = rows.map(arr => arr.join(',')).join('\n'); | |
navigator.clipboard.writeText(output); | |
// combined for bookmarklet: | |
javascript:navigator.clipboard.writeText(Array.from(document.querySelector("#resultTable tbody").children).map(r => Array.from(r.children).map(c => c.innerText)).map(a => a.join(';')).join('\n')) | |
// can then be pasted into e.g. Google Sheets (using semicolon delimiter paste setting) |