Last active
June 2, 2017 16:28
-
-
Save petehamilton/a6b1ca77a632cc1fbee7463cbb7fc419 to your computer and use it in GitHub Desktop.
Postfacto -> Paper
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
// Copy the below into the browser's console on a Postfacto archive screen | |
(() => { | |
let components = [ | |
`## Postfacto archive: ${window.location}`, | |
]; | |
components = components.concat( | |
[ | |
{ title: 'It wasn\'t so great that...', points: $$('.column-sad .item-text').map((el) => el.innerText) }, | |
{ title: 'I\'m wondering about...', points: $$('.column-meh .item-text').map((el) => el.innerText) }, | |
{ title: 'I\'m glad that...', points: $$('.column-happy .item-text').map((el) => el.innerText) }, | |
] | |
.map((group) => { | |
const points = group.points.map((p) => `- ${p}\n`).join(''); | |
return `## ${group.title} (${group.points.length})\n${points}`; | |
}) | |
); | |
console.log(components.join('\n')); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment