bookmarklet that picks a random photo from Immich
0
immich-random-photo.js
1javascript:(async()=>{try{const r=await fetch("/api/search/random",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({size:1}),credentials:"same-origin"});if(!r.ok)throw new Error("HTTP "+r.status);const[p]=await r.json();if(!p)throw new Error("no assets");location.href="/photos/"+p.id}catch(e){alert("Random Immich photo failed: "+e.message)}})();