changeset 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 77c5ac0ae047
children 717bc604371b
files mandarake-direct-link.user.js
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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);
+    }
   }
 }