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