Last active
September 15, 2023 16:35
-
-
Save pbinkley/c30ee85d5ac4590dba3fa8c596d7d358 to your computer and use it in GitHub Desktop.
Bookmarklet that copies an Internet Archive IIIF manifest uri to the clipboard, if you are looking at a regular Internet Archive item.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(()=>{id=/https:\/\/archive.org\/details\/([^/]*).*/.exec(location.href);if(id){manifest="https://iiif.archive.org/iiif/"+id[1]+"/manifest.json";navigator.clipboard.writeText(manifest);alert("Copied manifest uri: "+manifest);}else{alert("This isn't an archive.org item.");}})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(() => { | |
id = /https:\/\/archive.org\/details\/([^/]*).*/.exec(location.href); | |
if (id) { | |
manifest = "https://iiif.archive.org/iiif/" + id[1] + "/manifest.json"; | |
navigator.clipboard.writeText(manifest); | |
alert("Copied manifest uri: " + manifest); | |
} else { | |
alert("This isn't an archive.org item."); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment