diff --git a/.gitignore b/.gitignore index de85e12..0e93954 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -./config.php -./opensearch.xml +config.php +opensearch.xml diff --git a/README.md b/README.md index 4201e22..d6b560b 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ | [buscar.weblibre.org](https://buscar.weblibre.org/) | ❌ | ❌ | πŸ‡¨πŸ‡± CL | | [search.ahwx.org](https://search.ahwx.org/) | ❌ | ❌ | πŸ‡³πŸ‡± NL | | [librex.pufe.org](https://librex.pufe.org/) | ❌ | ❌ | :new_zealand: NZ | -| [librex.kitscomputer.tk](https://librex.kitscomputer.tk/) | ❌ | ❌ | πŸ‡ΊπŸ‡Έ US | +| [search.milivojevic.in.rs](https://search.milivojevic.in.rs/) | ❌ | ❌ | πŸ‡³πŸ‡± NL |
### Thanks rms diff --git a/config.php.example b/config.php.example index 207a960..20ddde2 100644 --- a/config.php.example +++ b/config.php.example @@ -23,7 +23,8 @@ "proxitok" => "", // tiktok "wikiless" => "", // wikipedia "quetre" => "", // quora - "libremdb" => "", // imdb + "libremdb" => "", // imdb, + "breezewiki" => "", // fandom /* To send requests trough a proxy uncomment CURLOPT_PROXY and CURLOPT_PROXYTYPE: diff --git a/instances.json b/instances.json index 947d116..9b26bdd 100644 --- a/instances.json +++ b/instances.json @@ -73,10 +73,10 @@ "country": "NZ" }, { - "clearnet": "https://librex.kitscomputer.tk/", + "clearnet": "https://search.milivojevic.in.rs/", "tor": null, "i2p": null, - "country": "US" + "country": "NL" } ] } diff --git a/misc/tools.php b/misc/tools.php index f5ab7ee..6a570b8 100644 --- a/misc/tools.php +++ b/misc/tools.php @@ -37,11 +37,21 @@ $url = $frontend . explode($original, $url)[1] . "?lang=" . $lang; } } + else if (strpos($url, "fandom.com") !== false) + { + $fandom_split = explode(".", $url); + if (count($fandom_split) > 1) + { + $wiki_name = explode("://", $fandom_split[0])[1]; + $url = $frontend . "/" . $wiki_name . explode($original, $url)[1]; + } + } else { $url = $frontend . explode($original, $url)[1]; } + return $url; } @@ -61,7 +71,8 @@ "tiktok.com" => "proxitok", "wikipedia.org" => "wikiless", "quora.com" => "quetre", - "imdb.com" => "libremdb" + "imdb.com" => "libremdb", + "fandom.com" => "breezewiki" ); foreach($frontends as $original => $frontend) diff --git a/settings.php b/settings.php index 05f0a2e..e62b9c5 100644 --- a/settings.php +++ b/settings.php @@ -87,7 +87,8 @@ "proxitok" => array("https://github.com/pablouser1/ProxiTok/wiki/Public-instances", "TikTok"), "wikiless" => array("https://codeberg.org/orenom/wikiless", "Wikipedia"), "quetre" => array("https://github.com/zyachel/quetre", "Quora"), - "libremdb" => array("https://github.com/zyachel/libremdb", "IMDb") + "libremdb" => array("https://github.com/zyachel/libremdb", "IMDb"), + "breezewiki" => array("https://gitdab.com/cadence/breezewiki", "Fandom") ); foreach($frontends as $frontend => $info)