From 284cb0d429abab70b38d41f16f4b887104ece553 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felix=20K=C3=A4stner?= Date: Wed, 11 Mar 2020 19:26:37 +0100 Subject: [PATCH 1/3] add search for opensubtitles.org --- index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/index.php b/index.php index 95c2f89..47bd8c6 100644 --- a/index.php +++ b/index.php @@ -192,6 +192,7 @@ se["ikea"] = ["ikea", "https://www.ikea.com/de/de/search/?query=", ""]; se["it"] = ["i-tanke", "https://ich-tanke.de/suche/?q=", ""] se["ct"] = ["clv-tkn", "https://www.clever-tanken.de/tankstelle_liste?spritsorte=7&r=10&ort=", ""] se["tp"] = ["tankstp", "https://www.tankstellenpreise.de/suche.html?sorte=2&u=10&s=1&o=", ""] +se["ost"] = ["ost", "https://www.opensubtitles.org/en/search2/sublanguageid-eng/moviename-", ""]; function display_searchbuttons() { document.getElementById("searchbuttons").innerHTML = ""; -- 2.30.2 From b5bbca71159b01373f9760fb965cf3acdcbf8ed7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felix=20K=C3=A4stner?= Date: Tue, 20 Apr 2021 13:13:44 +0200 Subject: [PATCH 2/3] improve code style --- index.php | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/index.php b/index.php index 47bd8c6..122a620 100644 --- a/index.php +++ b/index.php @@ -38,8 +38,8 @@ if ( isset($_GET['get']) and $_GET['get'] === "opensearchdescription" ) { if ( $dse ) { echo "?dse=$dse"; } echo '#{searchTerms}"> ' . "$consearch_base_url" . 'consearch.png -'; - + +'; exit; } @@ -247,9 +247,7 @@ if ( $dse ) {

-
- -
+
-
-
+
-

-add to browser -

+

add to browser

-

-about | contact -

+

about | contact

-- 2.30.2 From 7b8f8e6989ce448a139c29dfe3bcc816f0dea5a6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felix=20K=C3=A4stner?= Date: Tue, 20 Apr 2021 13:14:03 +0200 Subject: [PATCH 3/3] improve description to add consearch to browsers --- index.php | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/index.php b/index.php index 122a620..6314d36 100644 --- a/index.php +++ b/index.php @@ -267,14 +267,22 @@ if ( $browserintegration ) { if ( $browserintegration ) { echo " -

-Now add $consearch_name to your browser. In firefox this is done via the search bar or the ⋯-button in the address bar. If this does not work then $consearch_name can be added via the following form (right-click the input and select \"Add a Keyword for this Search...\"), but this would send all queries to the server and is not recommended. -

- -
\n"; - if ( $dse ) { echo "\n"; } - echo ' -
+
+

Add $consearch_name to your browser:

+
    +
  • In firefox desktop this is done via the search bar or the ⋯-button in the address bar.
  • +
  • In firefox for android: Go to settings → search → add search engine → other, add a name (like $consearch_name) and the url '$consearch_url#%s'
  • +
  • + If this does not work then $consearch_name can perhaps be added via the following form (right-click the input and select 'Add a Keyword for this Search...'), but this will send all queries to the server and is therefore not recommended. +
    "; + if ( $dse ) { echo " + "; } + echo ' + +
    +
  • +
+
'; } ?> -- 2.30.2