lovasoa / dezoomify-extension

A browser extension to detect zoomable images in web pages and downloading them with dezoomify
https://lovasoa.github.io/dezoomify-extension/
GNU General Public License v3.0
49 stars 2 forks source link

new site support: https://dnnt.mzk.cz #32

Closed lludvik closed 3 years ago

lludvik commented 3 years ago

Example URLs dezoomify detect url https://dnnt.mzk.cz/search/iiif/uuid:270d5cba-eed2-485c-bd73-cd8189879562/info.json need replace with https://dnnt.mzk.cz/search/img?pid=uuid:270d5cba-eed2-485c-bd73-cd8189879562&stream=IMG_FULL

lludvik commented 3 years ago

edit background.js

function openDezoomify(image_url) { if (image_url.indexOf("dnnt.mzk.cz") > -1) { image_url = image_url.replace(/\/info.json/, '&stream=IMG_FULL'); const url = image_url; return chrome.tabs.create({ url }); } else { const url = DEZOOMIFY_URL + image_url; return chrome.tabs.create({ url });
} }

lovasoa commented 3 years ago

see https://github.com/lovasoa/dezoomify/issues/589#issuecomment-980810836