diff mandarake-direct-link.user.js @ 132:8ccdc82249a2

[mandarake direct link] the attribute now set after element is added
author nanaya <me@nanaya.net>
date Sun, 07 Jan 2024 19:20:25 +0900
parents 8de2d53a4cb1
children 717bc604371b
line wrap: on
line diff
--- a/mandarake-direct-link.user.js	Fri Jun 30 20:28:27 2023 +0900
+++ b/mandarake-direct-link.user.js	Sun Jan 07 19:20:25 2024 +0900
@@ -47,6 +47,10 @@
     for (const node of mutation.addedNodes) {
       run(node);
     }
+
+    if (mutation.target instanceof window.HTMLElement) {
+      run(mutation.target);
+    }
   }
 }