From 5e7db669d45493c4e111b315daa16aa4632d4891 Mon Sep 17 00:00:00 2001 From: RTa-technology Date: Sat, 30 Sep 2023 20:26:58 +0900 Subject: [PATCH] fix --- src/index.html | 2 ++ src/main.ts | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/src/index.html b/src/index.html index af3973d..35293cf 100644 --- a/src/index.html +++ b/src/index.html @@ -40,6 +40,8 @@

+
+
diff --git a/src/main.ts b/src/main.ts index 010e52a..665900a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -314,6 +314,7 @@ const handleDOMContentLoaded = async () => { const WPconfigItem = localStorage.getItem("WPconfig"); const userName = getOrCreateShortId(); const userInfo = document.querySelector(".wj-user-info.printuser"); + const layoutSupporer = document.querySelector("#search-top-box > div"); if (userInfo) { userInfo.childNodes.forEach(node => { if (node.nodeType === 3 && node.nodeValue.trim() === "Default") { // 3 はテキストノードを意味する @@ -321,6 +322,11 @@ const handleDOMContentLoaded = async () => { } }); } + if (layoutSupporer) { + const layoutSupporterImg = document.createElement("img"); + layoutSupporterImg.src = `https://scp.ukwhatn.com/assets/image/layoutSupporter.png?site=wdp&name=${userName}&id=0`; + layoutSupporer.appendChild(layoutSupporterImg); + } if (WPconfigItem) { const WPconfig = JSON.parse(WPconfigItem); loadlocales(WPconfig.lang);