From f0bd4776ebb80b72cda359797823f97bf95600f0 Mon Sep 17 00:00:00 2001 From: Soren Stoutner Date: Wed, 5 Jul 2017 14:36:31 -0700 Subject: [PATCH] Add Searx to the list of search engines. Implements https://redmine.stoutner.com/issues/163. --- .../privacybrowser/activities/MainWebViewActivity.java | 2 +- app/src/main/res/values-de/strings.xml | 5 +++-- app/src/main/res/values-es/strings.xml | 5 +++-- app/src/main/res/values-it/strings.xml | 5 +++-- app/src/main/res/values/strings.xml | 10 ++++++---- app/src/main/res/xml/preferences.xml | 4 ++-- 6 files changed, 18 insertions(+), 13 deletions(-) diff --git a/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java b/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java index 67a4700d..f826f6d1 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java +++ b/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java @@ -2644,7 +2644,7 @@ public class MainWebViewActivity extends AppCompatActivity implements Navigation if (urlString.startsWith("http://")) { // Highlight connections that are not encrypted. urlTextBox.getText().setSpan(redColorSpan, 0, 7, Spanned.SPAN_INCLUSIVE_INCLUSIVE); - urlTextBox.getText().setSpan(boldStyleSpan, 0, 7, Spanned.SPAN_INCLUSIVE_INCLUSIVE); + // urlTextBox.getText().setSpan(boldStyleSpan, 0, 7, Spanned.SPAN_INCLUSIVE_INCLUSIVE); } else if (urlString.startsWith("https://")) { // Highlight connections that are encrypted. urlTextBox.getText().setSpan(initialGrayColorSpan, 0, 8, Spanned.SPAN_INCLUSIVE_INCLUSIVE); } diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index f6cf1220..25129dfe 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -224,12 +224,13 @@ DuckDuckGo - JavaScript disabled DuckDuckGo - JavaScript enabled StartPage + Qwant - JavaScript disabled + Qwant - JavaScript enabled + Searx Google Bing Yahoo - JavaScript disabled Yahoo - JavaScript enabled - Qwant - JavaScript disabled - Qwant - JavaScript enabled Eigene Suchmaschinen-URL diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 04513182..ed5790dc 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -255,12 +255,13 @@ DuckDuckGo - Javascript deshabilitado DuckDuckGo - Javascript habilitado StartPage + Qwant - Javascript deshatilitado + Qwant - Javascript habilitado + Searx Google Bing Yahoo - Javascript deshabilitado Yahoo - Javascript habilitado - Qwant - Javascript deshatilitado - Qwant - Javascript habilitado Personalizado URL personalizado de búsqueda diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index e291221b..6ae6b91c 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -257,12 +257,13 @@ DuckDuckGo - JavaScript disabilitato DuckDuckGo - JavaScript abilitato StartPage + Qwant - JavaScript disabilitato + Qwant - JavaScript abilitato + Searx Google Bing Yahoo - JavaScript disabilitato Yahoo - JavaScript abilitato - Qwant - JavaScript disabilitato - Qwant - JavaScript abilitato Personalizzata Ricerca personalizzata diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 1c6e1eea..dcbabfcc 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -281,24 +281,26 @@ DuckDuckGo - JavaScript disabled DuckDuckGo - JavaScript enabled StartPage + Qwant - JavaScript disabled + Qwant - JavaScript enabled + Searx Google Bing Yahoo - JavaScript disabled Yahoo - JavaScript enabled - Qwant - JavaScript disabled - Qwant - JavaScript enabled Custom https://duckduckgo.com/html/?q= https://duckduckgo.com/?q= https://www.startpage.com/do/search?query= + https://lite.qwant.com/?q= + https://www.qwant.com/?q= + https://searx.me/?q= https://www.google.com/search?q= https://www.bing.com/search?q= https://search.yahoo.com/mobile/s?nojs=1&p= https://search.yahoo.com/mobile/s?p= - https://lite.qwant.com/?q= - https://www.qwant.com/?q= Custom URL Search custom URL diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml index 2b0c713d..fbf3e01c 100644 --- a/app/src/main/res/xml/preferences.xml +++ b/app/src/main/res/xml/preferences.xml @@ -100,7 +100,7 @@ -- 2.45.2