diff --git a/engines/google/text.php b/engines/google/text.php index 05cdcf9..56fb1ae 100644 --- a/engines/google/text.php +++ b/engines/google/text.php @@ -55,7 +55,7 @@ $url = "https://check.torproject.org/torbulkexitlist"; break; case 7: - $wikipedia_language = $config->wikipedia_language; + $wikipedia_language = isset($_COOKIE["wikipedia_language"]) ? trim(htmlspecialchars($_COOKIE["wikipedia_language"])) : $config->wikipedia_language; $url = "https://$wikipedia_language.wikipedia.org/w/api.php?format=json&action=query&prop=extracts%7Cpageimages&exintro&explaintext&redirects=1&pithumbsize=500&titles=$query_encoded"; break; } diff --git a/settings.php b/settings.php index 3e9e36f..df150f6 100644 --- a/settings.php +++ b/settings.php @@ -77,6 +77,7 @@ > +

Privacy friendly frontends

For an example if you want to view YouTube without getting spied on, click on "Invidious", find the instance that is most suitable for you then paste it in (correct format: https://example.com)

@@ -96,6 +97,7 @@ >
+

Google settings

@@ -117,6 +119,18 @@ >
+ +

Wikipedia settings

+
+
+ Results language + wikipedia_language; + ?>"> +
+
+