Skip to content

Instantly share code, notes, and snippets.

@ziadoz
Created June 3, 2024 19:54
Show Gist options
  • Save ziadoz/c09de38c2eae691fb42c1baf7a78d0a4 to your computer and use it in GitHub Desktop.
Save ziadoz/c09de38c2eae691fb42c1baf7a78d0a4 to your computer and use it in GitHub Desktop.
Extract Safari Reading List Bookmarks
// Export bookmarks, open HTML, run this:
const links = [];
document.querySelectorAll('body > dt:nth-of-type(4) a').forEach((a) => {
links.push(a.getAttribute('href'));
});
links.join("\n");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment