From 95e70d6fb7a9581ac8744530b3a38aa7d09a9be3 Mon Sep 17 00:00:00 2001 From: PHO Date: Fri, 13 Sep 2019 13:36:38 +0900 Subject: [PATCH] Auto commit by The Sugar System. --- dot-files/_config/tridactyl/tridactylrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot-files/_config/tridactyl/tridactylrc b/dot-files/_config/tridactyl/tridactylrc index b256603..c3524a8 100644 --- a/dot-files/_config/tridactyl/tridactylrc +++ b/dot-files/_config/tridactyl/tridactylrc @@ -61,7 +61,7 @@ bind fillcmdline mcjira " Memories of multi_requester unbind m -command alc js -p let uri='https://eow.alc.co.jp/search?q=' + JS_ARG; if (document.location.hostname == 'eow.alc.co.jp') { tri.excmds.open(uri); } else { tri.excmds.tabopen(uri); } +command alc js -p let query=(JS_ARG == '' ? window.prompt('Query') : JS_ARG); if (query !== null) { let uri='https://eow.alc.co.jp/search?q=' + encodeURIComponent(query); if (document.location.hostname == 'eow.alc.co.jp') { tri.excmds.open(uri); } else { tri.excmds.tabopen(uri); } } bind ma fillcmdline alc " Quick marks -- 2.40.0