Greasy Fork is available in English.

Stable Diffusion image metadata viewer

Show Stable Diffusion generated image's metadata

< Spätná väzba na Stable Diffusion image metadata viewer

Hodnotenie: OK - skript funguje, ale má chyby

§
Pridaný: 10.02.2023
Upravený: 10.02.2023

Doesn't work with urls like this
example.com/image.png?a.a=b.b
example.com/image.png#cccc

line 25:
const ext = img.src.match(/[^.]+$/)[0].toLowerCase();
->
const ext = img.src.split(/[#?]/)[0].split('.').pop().trim().toLowerCase();

§
Pridaný: 11.02.2023

Thank you for feedback. Your code correctly works completely. I reconsidered file extention's condition is needless. It is better way for User Include.

Pridať odpoveď

Aby ste mohli pridať odpoveď, prihláste sa.