Update Image Loader Placeholder Remover to 1.15.2

- Fix images going out of bounds on legendsoflocalization.com
This commit is contained in:
blankie 2023-08-06 09:26:33 +10:00
parent cadc19f469
commit c5bcef022a
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 4 additions and 2 deletions

View File

@ -3,7 +3,7 @@
// @namespace blankie-scripts // @namespace blankie-scripts
// @match http*://*/* // @match http*://*/*
// @grant none // @grant none
// @version 1.15.1 // @version 1.15.2
// @author blankie // @author blankie
// @run-at document-end // @run-at document-end
// @description Removes image loading placeholders // @description Removes image loading placeholders
@ -180,7 +180,9 @@ function removePlaceholder(img) {
img.src = url; img.src = url;
unhideElement(img); unhideElement(img);
img.classList.remove(...getLazyloaderClasses(img)); // commented out as some sites may visually break, such as:
// https://legendsoflocalization.com/japans-mysterious-love-of-the-word-lets/#why-lets-is-so-common
//img.classList.remove(...getLazyloaderClasses(img));
if (!hasLinkParent) { if (!hasLinkParent) {
let wrapper = document.createElement("a"); let wrapper = document.createElement("a");