Skip to content

Instantly share code, notes, and snippets.

View ilovewine's full-sized avatar

Mateusz Piątkowski ilovewine

View GitHub Profile
@ilovewine
ilovewine / importBookshelf.js
Last active February 29, 2024 15:13
Lubimy czytać - import data from your bookshelf to XML. Note that the gist downloads only a selected portion of information. Feel free to adjust the `bookshelfData` array to your needs.
let booksXML = "";
let nextPageButton;
const readBooks = () => {
setTimeout(() => {
const bookshelfData = [
...document.querySelectorAll(".authorAllBooks__single"),
].map((bookDOM) => {
const linkTag = bookDOM.querySelector(".authorAllBooks__singleTextTitle");