diff pixiv-fanbox-unlazy.user.js @ 101:e21710f5dd7b

Also run on its own node
author nanaya <me@nanaya.net>
date Sat, 24 Dec 2022 21:31:42 +0900
parents 74c33632c353
children 93e21738b588
line wrap: on
line diff
--- a/pixiv-fanbox-unlazy.user.js	Sat Dec 24 21:28:36 2022 +0900
+++ b/pixiv-fanbox-unlazy.user.js	Sat Dec 24 21:31:42 2022 +0900
@@ -1,7 +1,7 @@
 // ==UserScript==
 // @name         pixiv fanbox no lazy loading image
 // @namespace    https://myconan.net
-// @version      2.1.0
+// @version      2.1.1
 // @description  Lazy loading is bad for environment. Disable it.
 // @author       nanaya
 // @match        https://*.fanbox.cc/*
@@ -43,6 +43,7 @@
   for (const mutation of mutations) {
     for (const node of mutation.addedNodes) {
       if (node instanceof window.HTMLElement) {
+        fix(node)
         for (const link of node.querySelectorAll(`[href^="${imageUrlPrefix}"]`)) {
           fix(link)
         }