From 99146502259dfc324ec427169e25554aaa91ab97 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Tue, 9 May 2023 20:19:22 +0200 Subject: WIP handwriting panel (added libs + button to search bar) --- yomichan-user/conf.d/sentence-export.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'yomichan-user/conf.d/sentence-export.js') diff --git a/yomichan-user/conf.d/sentence-export.js b/yomichan-user/conf.d/sentence-export.js index 176cdcd..f187b64 100644 --- a/yomichan-user/conf.d/sentence-export.js +++ b/yomichan-user/conf.d/sentence-export.js @@ -1,3 +1,5 @@ +{ + async function exportSentence() { var inputHTML = document.getElementById("query-parser-content"); var output = ""; @@ -43,10 +45,12 @@ function patchSearchBar() { } (() => { - if (document.body.classList.contains("patched")) return; + if (document.body.classList.contains("sentence-export-patched")) return; patchSearchBar(); - document.body.classList.add("patched"); + document.body.classList.add("sentence-export-patched"); })(); +} + -- cgit v1.2.3