Skip to content

Instantly share code, notes, and snippets.

@bobmatyas
Created October 18, 2023 15:31
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
OpenLibrary.org Book Cover Images Bookmarklet
javascript: (() => {
const isbn = prompt("Enter the 9 or 13 Digit ISBN for the book");
if ( isbn != null ) {
const coverImage = `https://covers.openlibrary.org/b/isbn/${isbn}-L.jpg`;
navigator.clipboard.writeText(coverImage);
alert(`${coverImage}\n\n Cover Image URL Copied to clipboard.`);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment