about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndrew Dolgov <noreply@fakecake.org>2019-06-18 21:26:14 +0300
committerAndrew Dolgov <noreply@fakecake.org>2019-06-18 21:26:14 +0300
commit6bbce144df1e35a4844afbbf10735ddecbe81819 (patch)
tree49f03a8388d29f455cee01a259d4b6a518f7acbc
parent4378c30a15e4d5db2b321ff9cb2ec90ab227bd75 (diff)
downloadthe-epube-6bbce144df1e35a4844afbbf10735ddecbe81819.tar.gz
the-epube-6bbce144df1e35a4844afbbf10735ddecbe81819.tar.xz
google -> duckduckgo
-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>