diff mandarake-direct-link.user.js @ 135:59c8866710f8

[mandarake-direct-link] skip redundant node type check
author nanaya <me@nanaya.net>
date Mon, 08 Jan 2024 21:53:12 +0900
parents 717bc604371b
children
line wrap: on
line diff
--- a/mandarake-direct-link.user.js	Wed Feb 21 21:19:16 2024 +0900
+++ b/mandarake-direct-link.user.js	Mon Jan 08 21:53:12 2024 +0900
@@ -1,7 +1,7 @@
 // ==UserScript==
 // @name        mandarake direct link
 // @namespace   https://nanaya.net
-// @version     2.0.2
+// @version     2.0.3
 // @description Make proper link on mandarake pages
 // @author      nanaya
 // @match       https://order.mandarake.co.jp/*
@@ -48,9 +48,7 @@
       run(node);
     }
 
-    if (mutation.target instanceof window.HTMLElement) {
-      run(mutation.target);
-    }
+    run(mutation.target);
   }
 }