pub / serci

Search the web with !keywords
git clone https://https://src.jayvii.de/pub/serci.git
Home | Log | Files | Exports | Refs | README | RSS

commit 1b3b28afb764e52e54114098542371e1313140af
parent 88886732e821f8f851b7147115a3d765a44fd0b4
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Wed, 10 Jul 2024 21:52:30 +0200

feat: order search engines alphabetically

Diffstat:
Mconfig/config.php | 406++++++++++++++++++++++++++++++++++++++++---------------------------------------
1 file changed, 205 insertions(+), 201 deletions(-)

diff --git a/config/config.php b/config/config.php @@ -2,95 +2,167 @@ /* Define Search Engines * Insert "%s" for the search-query part -* keywords are defined here as well. They may ONLY contain [A-Za-z0-9_\-\.]. +* keywords are defined here as well. They may ONLY contain [A-Za-z0-9]. */ $searches = array( - "metager_web" => array( - "name" => "MetaGer Web", - "website" => "https://metager.de/?focus=web", - "query" => "https://metager.de/meta/meta.ger3?focus=web&eingabe=%s", - "categories" => array("web", "meta"), - "keywords" => array("metager_web", "metager", "meta", "mg", "metaweb") + "archwiki" => array( + "name" => "Arch Wiki", + "website" => "https://wiki.archlinux.org", + "query" => "https://wiki.archlinux.org/index.php?search=%s", + "categories" => array("wiki", "linux"), + "keywords" => array("archwiki", "arch", "aw") + ), + "base" => array( + "name" => "BASE", + "website" => "https://www.base-search.net", + "query" => "https://www.base-search.net/Search/Results?lookfor=%s", + "categories" => array("sci"), + "keywords" => array("base", "basesearch", "science") + ), + "codeberg" => array( + "name" => "Codeberg", + "website" => "https://codeberg.org", + "query" => "https://codeberg.org/explore/repos?q=%s", + "categories" => array("code", "git"), + "keywords" => array("codeberg", "cb") + ), + "cran" => array( + "name" => "CRAN", + "website" => "https://cran.r-project.org", + "query" => "https://search.r-project.org/?P=%s", + "categories" => array("code", "docu"), + "keywords" => array("cran", "rcran", "r") + ), + "debianwiki" => array( + "name" => "Debian Wiki", + "website" => "https://wiki.debian.org", + "query" => "https://wiki.debian.org/?action=fullsearch&value=%s", + "categories" => array("wiki", "linux"), + "keywords" => array("debianwiki", "debian", "deb", "dw") + ), + "deepl" => array( + "name" => "DeepL (en-de)", + "website" => "https://deepl.com", + "query" => "https://www.deepl.com/translator#de/en/%s", + "categories" => array("lang"), + "keywords" => array("deepl") + ), + "dictcc" => array( + "name" => "dict.cc", + "website" => "https://dict.cc", + "query" => "https://m.dict.cc/?s=%s", + "categories" => array("lang"), + "keywords" => array("dictcc", "dict", "translate", "tl") + ), + "dockerhub" => array( + "name" => "dockerhub", + "website" => "https://hub.docker.com", + "query" => "https://hub.docker.com/search?q=%s", + "categories" => array("software", "linux"), + "keywords" => array("dockerhub", "docker", "dh") + ), + "duden" => array( + "name" => "Duden", + "website" => "https://www.duden.de", + "query" => "https://www.duden.de/suchen/dudenonline/%s", + "categories" => array("lang"), + "keywords" => array("duden", "ger", "de") + ), + "fdroid" => array( + "name" => "F-Droid", + "website" => "https://f-droid.org", + "query" => "https://search.f-droid.org/?q=%s", + "categories" => array("software", "android"), + "keywords" => array("fdroid", "droid", "fd", "android") + ), + "flathub" => array( + "name" => "Flathub", + "website" => "https://flathub.org", + "query" => "https://flathub.org/apps/search?q=%s", + "categories" => array("software", "linux"), + "keywords" => array("flathub", "flatpak", "fh", "fp") + ), + "github" => array( + "name" => "GitHub", + "website" => "https://github.com", + "query" => "https://github.com/search?q=%s", + "categories" => array("code", "git"), + "keywords" => array("github", "gh") + ), + "googlescholar" => array( + "name" => "Google Scholar", + "website" => "https://scholar.google.com", + "query" => "https://scholar.google.com/scholar?q=%s", + "categories" => array("sci"), + "keywords" => array("googlescholar", "gscholar") ), - "metager_img" => array( + "internetarchive" => array( + "name" => "Internet Archive", + "website" => "https://archive.org", + "query" => "https://archive.org/search?query=%s", + "categories" => array("archive"), + "keywords" => array("internetarchive", "archive", "ia") + ), + "leo" => array( + "name" => "LEO (en-de)", + "website" => "https://leo.org", + "query" => "https://dict.leo.org/englisch-deutsch/%s", + "categories" => array("lang"), + "keywords" => array("leo") + ), + "metagerimg" => array( "name" => "MetaGer Images", "website" => "https://metager.de/?focus=bilder", "query" => "https://metager.de/meta/meta.ger3?focus=bilder&eingabe=%s", "categories" => array("img", "meta"), - "keywords" => array("metager_img", "metaimg") + "keywords" => array("metagerimg", "metaimg") ), - "metager_sci" => array( - "name" => "MetaGer Science", - "website" => "https://metager.de/?focus=science", - "query" => "https://metager.de/meta/meta.ger3?focus=science&eingabe=%s", - "categories" => array("sci", "meta"), - "keywords" => array("metager_sci", "metasci", "metascience") - ), - "metager_map" => array( + "metagermap" => array( "name" => "MetaGer Maps", "website" => "https://metager.de/?fokus=maps", "query" => "https://maps.metager.de/en/%s/guess", "categories" => array("map"), "keywords" => array( - "metager_map", "metager_maps", "mgmap", "metamap", "map", "maps" + "metagermap", "metagermaps", "mgmap", "metamap", "map", "maps" ) ), - "qwant_web" => array( - "name" => "Qwant Web", - "website" => "https://qwant.com/?t=web", - "query" => "https://www.qwant.com/?t=web&q=%s", - "categories" => array("web"), - "keywords" => array("qwant_web", "qwant", "qw") + "metagersci" => array( + "name" => "MetaGer Science", + "website" => "https://metager.de/?focus=science", + "query" => "https://metager.de/meta/meta.ger3?focus=science&eingabe=%s", + "categories" => array("sci", "meta"), + "keywords" => array( + "metagersci", "metagerscience", "metasci", "metascience" + ) ), - "qwant_img" => array( - "name" => "Qwant Images", - "website" => "https://qwant.com/?t=images", - "query" => "https://www.qwant.com/?t=images&q=%s", - "categories" => array("img"), - "keywords" => array("qwant_img", "qwimg", "images", "image", "img") + "metagerweb" => array( + "name" => "MetaGer Web", + "website" => "https://metager.de/?focus=web", + "query" => "https://metager.de/meta/meta.ger3?focus=web&eingabe=%s", + "categories" => array("web", "meta"), + "keywords" => array("metagerweb", "metager", "meta", "mg", "metaweb") ), - "qwant_video" => array( - "name" => "Qwant Videos", - "website" => "https://qwant.com/?t=videos", - "query" => "https://www.qwant.com/?t=videos&q=%s", - "categories" => array("vid"), - "keywords" => array("qwant_video", "qwvid") + "mojeekimg" => array( + "name" => "Mojeek Images", + "website" => "https://mojeek.com/images", + "query" => "https://www.mojeek.com/search?fmt=images&q=%s", + "categories" => array("img"), + "keywords" => array("mojeekimg", "mjimg") ), - "mojeek_web" => array( + "mojeekweb" => array( "name" => "Mojeek Web", "website" => "https://mojeek.com", "query" => "https://www.mojeek.com/search?q=%s", "categories" => array("web"), - "keywords" => array("mojeek_web", "mojeek", "mj") + "keywords" => array("mojeekweb", "mojeek", "mj") ), - "mojeek_img" => array( - "name" => "Mojeek Web", - "website" => "https://mojeek.com/images", - "query" => "https://www.mojeek.com/search?fmt=images&q=%s", - "categories" => array("web"), - "keywords" => array("mojeek_web", "mojeek", "mj") - ), - "dictcc" => array( - "name" => "dict.cc", - "website" => "https://dict.cc", - "query" => "https://m.dict.cc/?s=%s", - "categories" => array("lang"), - "keywords" => array("dictcc", "dict", "translate", "tl") - ), - "leo" => array( - "name" => "LEO (en-de)", - "website" => "https://leo.org", - "query" => "https://dict.leo.org/englisch-deutsch/%s", - "categories" => array("lang"), - "keywords" => array("leo") - ), - "deepl" => array( - "name" => "DeepL (en-de)", - "website" => "https://deepl.com", - "query" => "https://www.deepl.com/translator#de/en/%s", - "categories" => array("lang"), - "keywords" => array("deepl") + "npm" => array( + "name" => "NPM", + "website" => "https://www.npmjs.com", + "query" => "https://www.npmjs.com/search?q=%s", + "categories" => array("code", "docu"), + "keywords" => array("npm", "npmjs", "node", "js") ), "oed" => array( "name" => "Oxford Dictionary", @@ -99,27 +171,6 @@ $searches = array( "categories" => array("lang"), "keywords" => array("oed", "oxford", "eng", "uk") ), - "duden" => array( - "name" => "Duden", - "website" => "https://www.duden.de", - "query" => "https://www.duden.de/suchen/dudenonline/%s", - "categories" => array("lang"), - "keywords" => array("duden", "ger", "de") - ), - "sepiasearch" => array( - "name" => "Sepia Search", - "website" => "https://sepiasearch.org", - "query" => "https://sepiasearch.org/search?search=%s", - "categories" => array("vid", "fedi"), - "keywords" => array("sepiasearch", "sepia", "peertube", "pt", "video", "videos") - ), - "youtube" => array( - "name" => "YouTube", - "website" => "https://www.youtube.com", - "query" => "https://www.youtube.com/results?search_query=%s", - "categories" => array("vid"), - "keywords" => array("youtube", "yt") - ), "openstreetmap" => array( "name" => "OpenStreetMap", "website" => "https://www.openstreetmap.org", @@ -127,12 +178,40 @@ $searches = array( "categories" => array("map"), "keywords" => array("openstreetmap", "osm") ), - "base" => array( - "name" => "BASE", - "website" => "https://www.base-search.net", - "query" => "https://www.base-search.net/Search/Results?lookfor=%s", - "categories" => array("sci"), - "keywords" => array("base", "basesearch", "science") + "php" => array( + "name" => "PHP Manual", + "website" => "https://www.php.net", + "query" => "https://www.php.net/manual-lookup.php?pattern=%s", + "categories" => array("docu"), + "keywords" => array("php", "phpdoc", "phpdocs", "phpman", "phpmans") + ), + "pypi" => array( + "name" => "PyPI", + "website" => "https://pypi.org", + "query" => "https://pypi.org/search/?q=%s", + "categories" => array("code", "docu"), + "keywords" => array("pypi", "python", "py") + ), + "qwantimg" => array( + "name" => "Qwant Images", + "website" => "https://qwant.com/?t=images", + "query" => "https://www.qwant.com/?t=images&q=%s", + "categories" => array("img"), + "keywords" => array("qwantimg", "qwimg", "images", "image", "img") + ), + "qwantvideo" => array( + "name" => "Qwant Videos", + "website" => "https://qwant.com/?t=videos", + "query" => "https://www.qwant.com/?t=videos&q=%s", + "categories" => array("vid"), + "keywords" => array("qwantvideo", "qwvid", "videos", "vids", "vid") + ), + "qwantweb" => array( + "name" => "Qwant Web", + "website" => "https://qwant.com/?t=web", + "query" => "https://www.qwant.com/?t=web&q=%s", + "categories" => array("web"), + "keywords" => array("qwantweb", "qwant", "qw") ), "semanticscholar" => array( "name" => "Semantic Scholar", @@ -141,61 +220,14 @@ $searches = array( "categories" => array("sci"), "keywords" => array("semanticscholar", "scholar", "literature") ), - "google_scholar" => array( - "name" => "Google Scholar", - "website" => "https://scholar.google.com", - "query" => "https://scholar.google.com/scholar?q=%s", - "categories" => array("sci"), - "keywords" => array("google_scholar", "gscholar") - ), - "wikipedia" => array( - "name" => "Wikipedia", - "website" => "https://wikipedia.org", - "query" => "https://wikipedia.org/wiki/%s", - "categories" => array("wiki"), - "keywords" => array("wikipedia", "wiki", "wp", "wk") - ), - "archwiki" => array( - "name" => "Arch Wiki", - "website" => "https://wiki.archlinux.org", - "query" => "https://wiki.archlinux.org/index.php?search=%s", - "categories" => array("wiki", "linux"), - "keywords" => array("archwiki", "arch", "aw") - ), - "debianwiki" => array( - "name" => "Debian Wiki", - "website" => "https://wiki.debian.org", - "query" => "https://wiki.debian.org/?action=fullsearch&value=%s", - "categories" => array("wiki", "linux"), - "keywords" => array("debianwiki", "debian", "deb", "dw") - ), - "stackoverflow" => array( - "name" => "Stackoverflow", - "website" => "https://stackoverflow.com", - "query" => "https://stackoverflow.com/search?q=%s", - "categories" => array("code", "forum"), - "keywords" => array("stackoverflow", "so", "code") - ), - "w3schools" => array( - "name" => "W3schools", /* Google CSE (!) */ - "website" => "https://www.w3schools.com", - "query" => "https://cse.google.com/cse?cx=c5f6ccbd4ce9405a8&q=%s", - "categories" => array("docu", "learn"), - "keywords" => array("w3schools", "w3school", "www", "w3s", "webdev") - ), - "github" => array( - "name" => "GitHub", - "website" => "https://github.com", - "query" => "https://github.com/search?q=%s", - "categories" => array("code", "git"), - "keywords" => array("github", "gh") - ), - "codeberg" => array( - "name" => "Codeberg", - "website" => "https://codeberg.org", - "query" => "https://codeberg.org/explore/repos?only_show_relevant=true&q=%s", - "categories" => array("code", "git"), - "keywords" => array("codeberg", "cb") + "sepiasearch" => array( + "name" => "Sepia Search", + "website" => "https://sepiasearch.org", + "query" => "https://sepiasearch.org/search?search=%s", + "categories" => array("vid", "fedi"), + "keywords" => array( + "sepiasearch", "sepia", "peertube", "pt", "video", "videos" + ) ), "sourcehut" => array( "name" => "Sourcehut", @@ -204,54 +236,12 @@ $searches = array( "categories" => array("code", "git"), "keywords" => array("sourcehut", "srht", "sir") ), - "dockerhub" => array( - "name" => "dockerhub", - "website" => "https://hub.docker.com", - "query" => "https://hub.docker.com/search?q=%s", - "categories" => array("software", "linux"), - "keywords" => array("dockerhub", "docker", "dh") - ), - "flathub" => array( - "name" => "Flathub", - "website" => "https://flathub.org", - "query" => "https://flathub.org/apps/search?q=%s", - "categories" => array("software", "linux"), - "keywords" => array("flathub", "flatpak", "fh", "fp") - ), - "fdroid" => array( - "name" => "F-Droid", - "website" => "https://f-droid.org", - "query" => "https://search.f-droid.org/?q=%s", - "categories" => array("software", "android"), - "keywords" => array("fdroid", "f-droid", "fd", "android") - ), - "cran" => array( - "name" => "CRAN", - "website" => "https://cran.r-project.org", - "query" => "https://search.r-project.org/?P=%s", - "categories" => array("code", "docu"), - "keywords" => array("cran", "rcran", "r-cran", "r") - ), - "pypi" => array( - "name" => "PyPI", - "website" => "https://pypi.org", - "query" => "https://pypi.org/search/?q=%s", - "categories" => array("code", "docu"), - "keywords" => array("pypi", "python", "py") - ), - "npm" => array( - "name" => "NPM", - "website" => "https://www.npmjs.com", - "query" => "https://www.npmjs.com/search?q=%s", - "categories" => array("code", "docu"), - "keywords" => array("npm", "npmjs", "node", "js") - ), - "php" => array( - "name" => "PHP Manual", - "website" => "https://www.php.net", - "query" => "https://www.php.net/manual-lookup.php?pattern=%s", - "categories" => array("docu"), - "keywords" => array("php", "phpdoc", "phpdocs", "phpman", "phpmans") + "stackoverflow" => array( + "name" => "Stackoverflow", + "website" => "https://stackoverflow.com", + "query" => "https://stackoverflow.com/search?q=%s", + "categories" => array("code", "forum"), + "keywords" => array("stackoverflow", "so") ), "symbl" => array( "name" => "SYMBL", @@ -260,6 +250,20 @@ $searches = array( "categories" => array("misc"), "keywords" => array("symbl", "symbol", "unicode") ), + "youtube" => array( + "name" => "YouTube", + "website" => "https://www.youtube.com", + "query" => "https://www.youtube.com/results?search_query=%s", + "categories" => array("vid"), + "keywords" => array("youtube", "yt") + ), + "w3schools" => array( + "name" => "W3schools", /* Google CSE (!) */ + "website" => "https://www.w3schools.com", + "query" => "https://cse.google.com/cse?cx=c5f6ccbd4ce9405a8&q=%s", + "categories" => array("docu", "learn"), + "keywords" => array("w3schools", "w3school", "www", "w3s", "webdev") + ), "waybackmachine" => array( "name" => "Wayback Machine", "website" => "https://web.archive.org", @@ -267,12 +271,12 @@ $searches = array( "categories" => array("archive"), "keywords" => array("waybackmachine", "webarchive", "wbm", "wb") ), - "internetarchive" => array( - "name" => "Internet Archive", - "website" => "https://archive.org", - "query" => "https://archive.org/search?query=%s", - "categories" => array("archive"), - "keywords" => array("internetarchive", "archive", "ia") + "wikipedia" => array( + "name" => "Wikipedia", + "website" => "https://wikipedia.org", + "query" => "https://wikipedia.org/wiki/%s", + "categories" => array("wiki"), + "keywords" => array("wikipedia", "wiki", "wp", "wk") ), );