# HG changeset patch # User nanaya # Date 1671832555 -32400 # Node ID b44d5cb661c5e7a72559b5f2dc13052402e45624 # Parent 3e5f1fa9ed52314a18457ae6916c27f1a9341323 Also check for empty string diff -r 3e5f1fa9ed52 -r b44d5cb661c5 melonbooks-unlazy.user.js --- a/melonbooks-unlazy.user.js Fri Dec 23 19:58:14 2022 +0900 +++ b/melonbooks-unlazy.user.js Sat Dec 24 06:55:55 2022 +0900 @@ -4,7 +4,7 @@ // @match https://www.melonbooks.co.jp/* // @grant none // @run-at document-start -// @version 1.0.2 +// @version 1.0.3 // @author nanaya // @description replace lazy loaded images with just images // @downloadURL https://hg.nanaya.net/ec-userscripts/raw-file/tip/melonbooks-unlazy.user.js @@ -15,7 +15,7 @@ function fix (image) { const src = image.dataset.src - if (src == null) return + if (src == null || src === '') return image.classList.remove('lazyload') image.src = image.dataset.src