# HG changeset patch # User nanaya # Date 1671793094 -32400 # Node ID 3e5f1fa9ed52314a18457ae6916c27f1a9341323 # Parent c8f9350c5307c48310f3b9e02c33c8b42a099cff Skip redundant class check and add dataset check instead diff -r c8f9350c5307 -r 3e5f1fa9ed52 melonbooks-unlazy.user.js --- a/melonbooks-unlazy.user.js Fri Dec 23 19:56:19 2022 +0900 +++ b/melonbooks-unlazy.user.js Fri Dec 23 19:58:14 2022 +0900 @@ -13,7 +13,9 @@ 'use strict' function fix (image) { - if (!image.classList.contains('lazyload')) return + const src = image.dataset.src + + if (src == null) return image.classList.remove('lazyload') image.src = image.dataset.src