mutterer / open-in-imagej-js-extension

Code for a Chrome extension that adds a 'Open in ImageJ.JS' button to GitHub Gist, GitHub repositories, and Zenodo *.tif datasets
6 stars 2 forks source link

Support online image database #4

Open oeway opened 3 years ago

oeway commented 3 years ago

I think we can think about adding support for online image databases!

For example:

(add more to the list)

mutterer commented 3 years ago

Hi @oeway, I added something that works for HPA. it was tricky as the image links aren't there immediately at page load, and also you have in page widgets that allow changing the displayed images. Hence, the correct link is refreshed and captured only when the ImageJ.JS link is clicked. It's really nice to have 1-click access to this beautiful atlas. Can you please try this using manual install before I update the extension tomorrow? image

oeway commented 3 years ago

@mutterer Wow, cool! Just tried it and works like a charm.

I tried to improved a bit for the button style via this PR: https://github.com/mutterer/open-in-imagej-js-extension/pull/5

One thing I tried to fix is that the button still shows on empty image in, for example, this page: https://www.proteinatlas.org/ENSG00000134057-CCNB1/cell#custom Maybe you can take a look at this?

mutterer commented 3 years ago

It's not straight forward, as all button parent element innerText are empty at page load, and some panels can be empties/filled according to user in-page selection.