Browse Source

Sync with upstream and add several customizations

poesty 1 year ago
parent
commit
f008787de3
5 changed files with 5 additions and 191 deletions
  1. 1 63
      README.md
  2. 0 124
      instances.json
  3. 2 2
      misc/footer.php
  4. 1 1
      opensearch.xml.example
  5. 1 1
      search.php

+ 1 - 63
README.md

@@ -1,63 +1 @@
-<h1 align="center">LibreX</h1>
-
-<p align="center">
-  <img src="https://user-images.githubusercontent.com/49120638/215327189-76c54dec-8b19-4faf-8c39-29a61aa3b143.png" width="400">
-  <img src="https://user-images.githubusercontent.com/49120638/215327239-b2a1cb07-3773-4ae7-bb3b-738de2cc3161.png" width="400">
-</p>
-
-<p align="center">Framework and javascript free privacy respecting meta search engine</p>
-
-<br>
-
-### Instances
-
-| Clearnet | TOR | I2P | Country |
-|-|-|-|-|
-| [librex.zzls.xyz](https://librex.zzls.xyz/) | [✅](http://librex.zzlsghu6mvvwyy75mvga6gaf4znbp3erk5xwfzedb4gg6qqh2j6rlvid.onion/) | [✅](http://7huurwog32tny663wkglrhozfoyqyqmsuxjbd7dtudccx44awjda.b32.i2p) | 🇨🇱 CL |
-| [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://cosrpybbddzdfjquer3zfmb2h5avtacnctnbu4gucwocdb42s63gcqqd.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 |
-| [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 |
-| [librex.myroware.eu](https://librex.myroware.eu/) | ❌ | ❌ | 🇩🇪 DE |
-| [librex.bloatcat.tk](https://librex.bloatcat.tk/) | ❌ | ❌ | 🇮🇸 IS |
-| [librex.retro-hax.net](https://librex.retro-hax.net/) | ❌ | ❌ | 🇩🇪 DE |
-| [search.funami.tech](https://search.funami.tech/) | ❌ | ❌ | 🇰🇷 KR |
-| [search.zeroish.xyz](https://search.zeroish.xyz/) | ❌| ❌ | 🇺🇸 US |
-| [librex.baczek.me](https://librex.baczek.me/) | ❌| ❌ | 🇵🇱 PL |
-| [librex.yogeshlamichhane.com.np](https://librex.yogeshlamichhane.com.np/) | ❌| ❌ | 🇺🇸 US |
-| [search.spaceint.fr](https://search.spaceint.fr/) | ❌ | ❌ | 🇩🇪 DE |
-| [lx.benike.monster](https://lx.benike.monster/) | ❌ | ❌ | 🇩🇪 DE |
-<br>
-
-### Thanks rms
-
-Huge thanks to Richard Stallman for using LibreX and featuring it on his [website](https://stallman.org/stallman-computing.html)!
-
-> However, the Librex proxies have worked around that problem. They enable me to access Google Search indirectly, and they work correctly through Tor with LibreJS enabled.
-
-<br>
-
-### About LibreX
-
-LibreX gives you results from Google, Qwant, Ahmia and popular torrent sites without spying on you.
-<br>LibreX doesn't save any type of data about the user, there are no logs, no caches.
-<br>
-<br>
-If you would like to learn more about LibreX check out the [Wiki](https://github.com/hnhx/librex/wiki).
-<br>
-<br>
-
-
-### LibreX compared to other metasearch engines
-
-| Name |  Works without JS | Privacy frontend redirect | Torrent results | API | No 3rd party libs used |
-|-|-|-|-|-|-|
-| LibreX | ✅ | ✅ | ✅ | ✅ | ✅ |
-| SearXNG | ❓ Not user friendly | ❓ Only host can set it | ✅ | ✅ | ❌ |
-| Whoogle | ✅ | ❓ Only host can set it | ❌ | ❌ | ❌ |
+LibreX, but a extra modified version

+ 0 - 124
instances.json

@@ -1,124 +0,0 @@
-{
-    "instances": [
-          {
-              "clearnet": "https://librex.zzls.xyz/",
-              "tor": "http://librex.zzlsghu6mvvwyy75mvga6gaf4znbp3erk5xwfzedb4gg6qqh2j6rlvid.onion/",
-              "i2p": "http://7huurwog32tny663wkglrhozfoyqyqmsuxjbd7dtudccx44awjda.b32.i2p/",
-              "country": "CL"
-          },
-          {
-              "clearnet": "https://librex.revvy.de/",
-              "tor": "http://librex.revvybrr6pvbx4n3j4475h4ghw4elqr4t5xo2vtd3gfpu2nrsnhh57id.onion/",
-              "i2p": "http://revekebotog64xrrammtsmjwtwlg3vqyzwdurzt2pu6botg4bejq.b32.i2p/",
-              "country": "CA"
-          },
-          {
-              "clearnet": "https://librex.mikata.ru/",
-              "tor": "http://f7ssz7l3biu4fugwctfpcx4txg5yq4gqhrt473ledsuc3ivtd3omniid.onion/",
-              "i2p": null,
-              "country": "US"
-          },
-          {
-              "clearnet": "https://search.ahwx.org/",
-              "tor": "http://cosrpybbddzdfjquer3zfmb2h5avtacnctnbu4gucwocdb42s63gcqqd.onion/",
-              "i2p": null,
-              "country": "NL"
-          },
-          {
-              "clearnet": "https://search.davidovski.xyz/",
-              "tor": null,
-              "i2p": null,
-              "country": "UK"
-          },
-          {
-              "clearnet": "https://search.madreyk.xyz/",
-              "tor": null,
-              "i2p": null,
-              "country": "DE"
-          },
-          {
-              "clearnet": "https://search.pabloferreiro.es/",
-              "tor": null,
-              "i2p": null,
-              "country": "DE"
-          },
-          {
-              "clearnet": "https://librex.pufe.org/",
-              "tor": null,
-              "i2p": null,
-              "country": "NZ"
-          },
-          {
-              "clearnet": "https://search.milivojevic.in.rs/",
-              "tor": null,
-              "i2p": null,
-              "country": "NL"
-          },
-          {
-              "clearnet": "https://librex.ratakor.com/",
-              "tor": null,
-              "i2p": null,
-              "country": "FR"
-          },
-          {
-              "clearnet": "https://search.tildevarsh.in/",
-              "tor": null,
-              "i2p": null,
-              "country": "IN"
-          },
-          {
-              "clearnet": "https://librex.myroware.eu/",
-              "tor": null,
-              "i2p": null,
-              "country": "DE"
-          },
-          {
-              "clearnet": "https://librex.bloatcat.tk/",
-              "tor": null,
-              "i2p": null,
-              "country": "IS"
-          },
-          {
-              "clearnet": "https://librex.retro-hax.net/",
-              "tor": null,
-              "i2p": null,
-              "country": "DE"
-          },
-          {
-              "clearnet": "https://search.funami.tech/",
-              "tor": null,
-              "i2p": null,
-              "country": "KR"
-          },
-          {
-              "clearnet": "https://search.zeroish.xyz/",
-              "tor": null,
-              "i2p": null,
-              "country": "US"
-          },
-          {
-              "clearnet": "https://librex.baczek.me/",
-              "tor": null,
-              "i2p": null,
-              "country": "PL"
-          },
-          {
-              "clearnet": "https://librex.yogeshlamichhane.com.np/",
-              "tor": null,
-              "i2p": null,
-              "country": "US"
-          },
-          {
-              "clearnet": "https://search.spaceint.fr/",
-              "tor": null,
-              "i2p": null,
-              "country": "DE"
-          },
-          {
-              "clearnet": "https://lx.benike.monster/",
-              "tor": null,
-              "i2p": null,
-              "country": "DE"
-          }
-    ]
-}

+ 2 - 2
misc/footer.php

@@ -1,6 +1,6 @@
 <div class="footer-container">
     <a href="./">LibreX</a>
-    <a href="https://github.com/hnhx/librex/" target="_blank">Source &amp; Instances</a>
+    <a href="https://git.qunn.eu/poesty/librex-extra/" target="_blank">Source &amp; Instances</a>
     <a href="./settings.php">Settings</a>
     <a href="./api.php" target="_blank">API</a>
     <a href="./donate.php">Donate ❤️</a>
@@ -8,7 +8,7 @@
 <div class="git-container">
     <?php
         $hash = file_get_contents(".git/refs/heads/main");
-        echo "<a href=\"https://github.com/hnhx/librex/commit/$hash\" target=\"_blank\">Latest commit: $hash</a>";
+        echo "<a href=\"https://git.qunn.eu/poesty/librex-extra/commit/$hash\" target=\"_blank\">Latest commit: $hash</a>";
     ?>
 </div>
 </body>

+ 1 - 1
opensearch.xml.example

@@ -10,5 +10,5 @@
 
   <Url type="application/opensearchdescription+xml"
       rel="self"
-      template="opensearch.xml?method=POST" />
+      template="./opensearch.xml?method=POST" />
 </OpenSearchDescription>

+ 1 - 1
search.php

@@ -48,7 +48,7 @@
                             continue;
                         }
 
-                        echo "<button name=\"t\" value=\"$category_index\" " . (($category_index == $type) ? "class=\"active\"" : "") . "><img src=\"static/images/" . $category . "_result.png\" alt=\"" . $category . " result\" />" . ucfirst($category)  . "</button>";
+                        echo "<button name=\"t\" value=\"$category_index\" " . (($category_index == $type) ? "class=\"active\" " : "") . "><img src=\"static/images/" . $category . "_result.png\" alt=\"" . $category . " result\" />" . ucfirst($category)  . "</button>";
                     }
                 ?>
             </div>