diff --git a/assets/js/search.js b/assets/js/search.js index 7d3cc76..12736b2 100755 --- a/assets/js/search.js +++ b/assets/js/search.js @@ -1,5 +1,6 @@ var sindex = 0; var cycle = false; +var sengine = "https://www.google.com/?q="; // Default search engine function start() { var query = getParameterByName('q'); @@ -92,6 +93,9 @@ function search(text) { case "y": window.location = "https://www.youtube.com/results?search_query=" + subtext; break; + case "g": + window.location = "https://www.google.com/?q=" + subtext; + break; } } else { var option = text.substr(1); @@ -116,7 +120,7 @@ function search(text) { else window.location = "https://" + text; } else { - window.location = "https://www.google.com/search?q=" + text; + window.location = sengine + text; } } diff --git a/index.html b/index.html index e5089cd..bed4f55 100755 --- a/index.html +++ b/index.html @@ -86,7 +86,7 @@
- {{name}} + {{name}} {{url}}