Sheezy Image Viewer

1/8/2024, 9:16:09 PM

< 腳本Sheezy Image Viewer的回應

評論:正評 - 腳本一切正常

§
發表於:2024-03-30

Thanks for the script, it looks very extensive!
All features work and feel very smooth and intuitive! ^^

Currently, there seems to be a bug.
I'm not sure if this is different with violentmonkey, but in line 303 you write
return document.querySelector(`${_config.ImgDOM} canvas`).getAttribute('style').match(/--src:url\('(.*?)'\)/)[1];
but the current style attribute has a space before "url(" in Firefox/Chrome.
So, I propose either adding the space or maintaining compatibility with
return document.querySelector(`${_config.ImgDOM} canvas`).getAttribute('style').match(/--src:\s?url\('(.*?)'\)/)[1];

發表回覆

登入以回復