Skip to content

Instantly share code, notes, and snippets.

@bobmatyas
Created October 18, 2023 15:31
Show Gist options
  • Save bobmatyas/b6cbac1703af7d02a49f4e1697b28f6a to your computer and use it in GitHub Desktop.
Save bobmatyas/b6cbac1703af7d02a49f4e1697b28f6a to your computer and use it in GitHub Desktop.
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