curiouser

curiouser

Joined 9 months ago

curiouser
Last active 3 days ago

Immich shared album selects

0 0 1
1 // open the likes/comments activity panel prior to running this in a web console.
2 // this will insert thumbs just above the album photos
3
4 (() => {
5 // cleanup and init
6 try {
7 document.querySelector('#virtual-timeline').parentNode.removeChild(document.querySelector('#selects'))
8 } catch {}
9 document.querySelector('#virtual-timeline').insertAdjacentHTML('beforebegin', '<div class="flex flex-wrap" id="selects"></div>')
10
curiouser
Last active 3 days ago

For a given Immich (v1.120.1) album with the "activity panel" open, run this in web console to see which photos received likes and comments

0 0 1
1 (() => {
2 // cleanup and init
3 try {
4 document.querySelector('#virtual-timeline').parentNode.removeChild(document.querySelector('#selects'))
5 } catch {}
6 document.querySelector('#virtual-timeline').insertAdjacentHTML('beforebegin', '<div class="flex flex-wrap" id="selects"></div>')
7
8 const commentCountMap = new Map()
9 const commentThumbs = Array.from(document.querySelectorAll('#activity-panel img[alt*=commented]'))
10 const likeCountMap = new Map()