From 2519666e1c831f85836f9ce6d975d3ceb975c09d Mon Sep 17 00:00:00 2001 From: lolcat Date: Mon, 27 Nov 2023 01:01:56 -0500 Subject: google web, videos and news, various other fixes --- settings.php | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) (limited to 'settings.php') diff --git a/settings.php b/settings.php index bee31ea..20f5031 100644 --- a/settings.php +++ b/settings.php @@ -117,10 +117,10 @@ $settings = [ "value" => "yandex", "text" => "Yandex" ], - /*[ + [ "value" => "google", "text" => "Google" - ],*/ + ], [ "value" => "mojeek", "text" => "Mojeek" @@ -192,11 +192,11 @@ $settings = [ [ "value" => "yandex", "text" => "Yandex" - ]/*, + ], [ "value" => "google", "text" => "Google" - ]*/ + ] ] ], [ @@ -211,10 +211,10 @@ $settings = [ "value" => "brave", "text" => "Brave" ], - /*[ + [ "value" => "google", "text" => "Google" - ],*/ + ], [ "value" => "mojeek", "text" => "Mojeek" @@ -434,20 +434,33 @@ $left .= '' . '
' . '' . - '< Return to front page' . + '< Go back' . '
' . ''; if(count($_GET) === 0){ - + + $code = []; + foreach($_COOKIE as $key => $value){ + + $code[] = rawurlencode($key) . "=" . rawurlencode($value); + } + + $code = implode("&", $code); + + if($code != ""){ + + $code = "?" . $code; + } + echo $frontend->load( "search.html", [ "class" => "", "right-left" => - '

Preference link

Follow this link to auto-apply all cookies. Useful if your browser clears out cookies after a browsing session. Following this link will redirect you to the front page, unless no settings are set.

' . - 'Bookmark me!' . + '

Preference link

Following this link will re-apply all cookies configured here and will redirect you to the front page. Useful if your browser clears out cookies after a browsing session.

' . + 'Bookmark me!' . '
', "right-right" => "", "left" => $left -- cgit v1.2.3