Skip to content

Instantly share code, notes, and snippets.

@wifeofvillon
Created June 23, 2020 03:19
Show Gist options
  • Save wifeofvillon/e333b33120c751654162cc31ea29322a to your computer and use it in GitHub Desktop.
Save wifeofvillon/e333b33120c751654162cc31ea29322a to your computer and use it in GitHub Desktop.
(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