detektIIIF is a browser extension for Chrome and Firefox that detects IIIF resources in websites. It is possible to collect IIIF manifests in a basket and send them to any compatible IIIF application. detektIIIF is extensively configurable and can be customized with individual themes. The browser extension also checks for the presence of various interoperability features (CORS, SSL, etc.) and displays warnings if necessary.
This code is considered to be in beta state. Important steps: splitting code into components and reducing redundancy and incompleteness of quickly written code.
This is the current version of detektIIIF3 older versions:
If you don't want to work with the source code you may install detektIIIF3 from the Chrome Web Store: https://chromewebstore.google.com/detail/detektiiif3/aaodcobgcadinjipaocibamdfcffpcpp
used boilerplate: https://github.com/lxieyang/chrome-extension-boilerplate-react
git clone https://github.com/seigedigital/detektIIIF3
cd detektIIIF3
npm install
cd src/themes
./settheme.sh <themefolder> <manifestversion>
./settheme.sh detektIIIF3 v2
npm run startv3
(continuous development mode + hot reload, manifest version 3)OR
npm run startv2
(continuous development mode + hot reload, manifest version 2)Load in Firefox (most likely v2):
about:debugging
build
folder (or the manifest.json file in it)Load in Chrome (likely v3):
chrome://extensions
Developer mode
onLoad unpacked
build
foldernpm run buildv3
(one time build for production, manifest version 3)OR
npm run buildv2
(one time build for production, manifest version 2)Duplicate one of the folders in src/themes for your own theme
cp -r detektiiif3 myinstitution
Modify the files in the new folder as you wish and continue as described in section "Configure repository"
Don't forget to keep v2 and v3 manifest files both up to date, e.g. the version number.
Beware! We distinguish the version number of detektIIIF3 from the version number of the theme:
Set the version of detektIIIF3 number in the package.json
file
Set the version number of the theme in both manifest-v*.json
files
./pack4cws.sh
./pack4amo.sh