Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Extract notes (not highlights) from ``
// Loop over every "note" in the notebook
// Each book is it's own notebook.
// Highlights are considered notes at this level.
for(let i = 0; i < document.getElementsByClassName("kp-notebook-note").length; i++) {
// An id of 5 is a placeholder for when a user adds a note.
// Every note and highlight has at least this many characters in the ID.
if (notes[i].id.length > 5) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment