summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/read.js3
-rw-r--r--read.html2
2 files changed, 3 insertions, 2 deletions
diff --git a/js/read.js b/js/read.js
index 9e86502..dd3c3f4 100644
--- a/js/read.js
+++ b/js/read.js
@@ -338,9 +338,10 @@ function init_reader() {
$(".dict_result").scrollTop(0);
})
+ // TODO: make configurable
$(".dict_search_btn").on("click", function() {
$("#dict-modal").modal('hide');
- window.open("https://google.com/search?q=" + $(".dict_query").val());
+ window.open("https://duckduckgo.com/?q=" + $(".dict_query").val());
});
function toc_loc_msg(href) {
diff --git a/read.html b/read.html
index 3bc2427..bf50f4e 100644
--- a/read.html
+++ b/read.html
@@ -131,7 +131,7 @@
<div class="dict_result"> </div>
</div>
<div class="modal-footer">
- <button type="button" class="dict_search_btn btn-default btn">Google</button>
+ <button type="button" class="dict_search_btn btn-default btn">Web search</button>
<button type="button" class="btn btn-primary" data-dismiss="modal">Close</button>
</div>
</div>