From 35d9a21c5d6c95d74ace9b3ea2ab647924d8db46 Mon Sep 17 00:00:00 2001 From: hnhx Date: Tue, 14 Mar 2023 12:12:47 +0100 Subject: [PATCH] fixed wikipedia bang, added tor instance for search.ahwx.org --- README.md | 2 +- instances.json | 12 ++++++------ misc/tools.php | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 9b832fa..0555e7e 100644 --- a/README.md +++ b/README.md @@ -20,11 +20,11 @@ | [librex.revvy.de](https://librex.revvy.de/) | [✅](http://librex.revvybrr6pvbx4n3j4475h4ghw4elqr4t5xo2vtd3gfpu2nrsnhh57id.onion/) | [✅](http://revekebotog64xrrammtsmjwtwlg3vqyzwdurzt2pu6botg4bejq.b32.i2p/) | 🇨🇦 CA | | [librex.mikata.ru](https://librex.mikata.ru/) | [✅](http://f7ssz7l3biu4fugwctfpcx4txg5yq4gqhrt473ledsuc3ivtd3omniid.onion/) | ❌ | 🇺🇸 US | | [search.milivojevic.in.rs](https://search.milivojevic.in.rs/) | [✅](http://librex2xsek6qnh2i4yufuzqjumfdwtw7io7omgmimpzna6llqudqzyd.onion/) | ❌ | 🇳🇱 NL | +| [search.ahwx.org](https://search.ahwx.org/) | [✅](http://fcnfg6avz45hqzwbneekq57u2mqbnwa7veyvjcc4dndqbatvkjlaj7yd.onion/) | ❌ | 🇳🇱 NL | | [search.davidovski.xyz](https://search.davidovski.xyz/) | ❌ | ❌ | 🇬🇧 UK | | [search.madreyk.xyz](https://search.madreyk.xyz/) | ❌ | ❌ | 🇩🇪 DE | | [search.pabloferreiro.es](https://search.pabloferreiro.es/) | ❌ | ❌ | 🇩🇪 DE | | [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.ratakor.com](https://librex.ratakor.com/) | ❌ | ❌ | 🇫🇷 FR | | [search.tildevarsh.in](https://search.tildevarsh.in/) | ❌ | ❌ | 🇮🇳 IN | diff --git a/instances.json b/instances.json index 4cc88aa..83e68fe 100644 --- a/instances.json +++ b/instances.json @@ -36,6 +36,12 @@ "i2p": null, "country": "US" }, + { + "clearnet": "https://search.ahwx.org/", + "tor": "http://fcnfg6avz45hqzwbneekq57u2mqbnwa7veyvjcc4dndqbatvkjlaj7yd.onion/", + "i2p": null, + "country": "NL" + }, { "clearnet": "https://search.davidovski.xyz/", "tor": null, @@ -60,12 +66,6 @@ "i2p": null, "country": "CL" }, - { - "clearnet": "https://search.ahwx.org/", - "tor": null, - "i2p": null, - "country": "NL" - }, { "clearnet": "https://librex.pufe.org/", "tor": null, diff --git a/misc/tools.php b/misc/tools.php index 990f16d..191ca4c 100644 --- a/misc/tools.php +++ b/misc/tools.php @@ -45,7 +45,7 @@ if (count($wiki_split) > 1) { $lang = explode("://", $wiki_split[0])[1]; - $url = $frontend . explode($original, $url)[1] . "?lang=" . $lang; + $url = $frontend . explode($original, $url)[1] . (strpos($url, "?") !== false ? "&" : "?") . "lang=" . $lang; } } else if (strpos($url, "fandom.com") !== false)