Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(function(){
let paneTitle = "Done - Jun, 2020";
let panes = document.querySelectorAll("div.list-wrapper");
let tsv = [];
for (pane of panes) {
if (!pane.classList.contains("is-idle")){
let title = pane.getElementsByClassName("list-header-name-assist")[0].innerText;
if (title === paneTitle) {
// console.log(`title: ${title}`);
let cards = pane.getElementsByClassName("list-card");
for (card of cards) {
let cardTitle = card.getElementsByClassName("list-card-title")[0].innerText;
let cardUrl = card.href;
// console.log(`cardTitle: ${cardTitle}\tcardUrl: ${cardUrl}`);
tsv.push(`${cardTitle}\t${cardUrl}`)
}
}
}
}
if (tsv.length > 0) {
console.log(tsv.join('\n'));
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment