aboutsummaryrefslogtreecommitdiff
path: root/yomichan/userscript-loader.js
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2023-01-29 16:46:15 +0100
committerlonkaars <loek@pipeframe.xyz>2023-01-29 16:46:15 +0100
commit34ea3829e7cb435a4357b43fcfff514fdd39083e (patch)
tree8293b7f4a9e5d9e45341609595c754ff115a2771 /yomichan/userscript-loader.js
parentae34a31fd4beb438118f6129e867b6f3cf2ba602 (diff)
separate yomichan into user.js patch and sentence-export plugin
Diffstat (limited to 'yomichan/userscript-loader.js')
-rw-r--r--yomichan/userscript-loader.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/yomichan/userscript-loader.js b/yomichan/userscript-loader.js
new file mode 100644
index 0000000..b9d9120
--- /dev/null
+++ b/yomichan/userscript-loader.js
@@ -0,0 +1,6 @@
+(async () => eval((await yomichan.api.getSettings([{
+ scope: "profile",
+ optionsContext: { current: true },
+ path: 'general.userScript'
+}]))[0].result))();
+