Update Image Loader Placeholder Remover to 1.15.2
- Fix images going out of bounds on legendsoflocalization.com
This commit is contained in:
parent
cadc19f469
commit
c5bcef022a
|
@ -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");
|
||||||
|
|
Loading…
Reference in New Issue