Mirador

This bookmarklet opens the current address in Mirador.

Installation

Drag the button below to the favorites bar of your browser in order to install this bookmarklet. Alternatively, you can copy the code below and paste it in the address or URL field of a new bookmark.

Open in Mirador

Source code

javascript:location=`https://projectmirador.org/embed/?manifest=${encodeURIComponent(window.location)}`

Get Manifest parameter

Sometimes you want to get the manifest parameter after having opened something in Mirador.

Installation

Drag the button below to the favorites bar of your browser in order to install this bookmarklet. Alternatively, you can copy the code below and paste it in the address or URL field of a new bookmark.

Get IIIF Manifest

Source code

javascript: (function () {
    // Split params from url and get the manifest or url param
    const params = new URLSearchParams(window.location.href.split("?")[1]);
    const manifestUri = params.get("manifest") || params.get("url");
    // Navigate to manifest
    if (manifestUri) {
        window.location = manifestUri;
    } else {
        // Or alert the user that no manifest was found
        window.alert("No manifest found!");
    }
})()