3 ms·
Just replace console.table with JSON.stringify for the quick-and-easy dump of exactly the same data as is in the table... JSON.stringify([...document.querySele
by chair6 5y ago
Just replace console.table with JSON.stringify for the quick-and-easy dump of exactly the same data as is in the table...
JSON.stringify([...document.querySelectorAll('.fatitem table .athing')].map(el => [el.textContent.trim(), el.nextSibling.textContent.trim()]).sort(([,a], [,b]) => parseInt(b) - parseInt(a)))