mirror of
https://github.com/hnhx/librex.git
synced 2025-04-29 14:09:27 -04:00
added breezewiki to the frontends, removed a dead intance and added a new one
This commit is contained in:
parent
71de47d472
commit
b96953bd20
6 changed files with 21 additions and 8 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,2 +1,2 @@
|
|||
./config.php
|
||||
./opensearch.xml
|
||||
config.php
|
||||
opensearch.xml
|
||||
|
|
|
@ -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 |
|
||||
<br>
|
||||
|
||||
### Thanks rms
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue