After you are finished with a library book it must be returned and then deleted. I added the code below to automatically return the library book, but would love to have the book automatically deleted as well. However, I wasn't sure how to code determining if a book was from a library or not. There is a line of text next to the book that reads:
"This book was a Kindle digital library loan
Expired on (date)
This title is unavailable for download and transfer"
log(`Clicking Return: ${confirm}`, "debug");
document.querySelector(`#RETURN_CONTENT_ACTION_${asin}_CONFIRM > span`).click();
I can also send you an export of the page.
After you are finished with a library book it must be returned and then deleted. I added the code below to automatically return the library book, but would love to have the book automatically deleted as well. However, I wasn't sure how to code determining if a book was from a library or not. There is a line of text next to the book that reads:
"This book was a Kindle digital library loan
Expired on (date)
This title is unavailable for download and transfer"
I can also send you an export of the page.