Greasy Fork is available in English.

Stable Diffusion image metadata viewer

顯示 Stable Diffusion 生成圖像的元數據

< 腳本Stable Diffusion image metadata viewer的回應

評論:OK - script works, but has bugs

§
發表於:2023-02-10
編輯:2023-02-10

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();

§
發表於:2023-02-11

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

發表回覆

登入以回復