Browse Source

fixed wikipedia bang, added tor instance for search.ahwx.org

hnhx 2 years ago
parent
commit
35d9a21c5d
3 changed files with 8 additions and 8 deletions
  1. 1 1
      README.md
  2. 6 6
      instances.json
  3. 1 1
      misc/tools.php

+ 1 - 1
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 |

+ 6 - 6
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,

+ 1 - 1
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)