Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Goodreads Book Title, Author Name Extractor:
Array.from(document.querySelectorAll(".bookTitle, .authorName"))
.filter((entry) => entry.attributes.itemprop)
.map((entry) => entry.innerText.replace(/\s\(.*?\)\s?/, ""))
(result, entry, index, list) =>
index % 2 == 0 ? result.concat(`${list[index]}, ${list[index + 1]}`) : result,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.