aboutsummaryrefslogtreecommitdiff
path: root/yomichan-user/conf.d/sentence-export.js
diff options
context:
space:
mode:
Diffstat (limited to 'yomichan-user/conf.d/sentence-export.js')
-rw-r--r--yomichan-user/conf.d/sentence-export.js8
1 files changed, 6 insertions, 2 deletions
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");
})();
+}
+