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
|
config.php
|
||||||
./opensearch.xml
|
opensearch.xml
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
| [buscar.weblibre.org](https://buscar.weblibre.org/) | ❌ | ❌ | 🇨🇱 CL |
|
| [buscar.weblibre.org](https://buscar.weblibre.org/) | ❌ | ❌ | 🇨🇱 CL |
|
||||||
| [search.ahwx.org](https://search.ahwx.org/) | ❌ | ❌ | 🇳🇱 NL |
|
| [search.ahwx.org](https://search.ahwx.org/) | ❌ | ❌ | 🇳🇱 NL |
|
||||||
| [librex.pufe.org](https://librex.pufe.org/) | ❌ | ❌ | :new_zealand: NZ |
|
| [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>
|
<br>
|
||||||
|
|
||||||
### Thanks rms
|
### Thanks rms
|
||||||
|
|
|
@ -23,7 +23,8 @@
|
||||||
"proxitok" => "", // tiktok
|
"proxitok" => "", // tiktok
|
||||||
"wikiless" => "", // wikipedia
|
"wikiless" => "", // wikipedia
|
||||||
"quetre" => "", // quora
|
"quetre" => "", // quora
|
||||||
"libremdb" => "", // imdb
|
"libremdb" => "", // imdb,
|
||||||
|
"breezewiki" => "", // fandom
|
||||||
|
|
||||||
/*
|
/*
|
||||||
To send requests trough a proxy uncomment CURLOPT_PROXY and CURLOPT_PROXYTYPE:
|
To send requests trough a proxy uncomment CURLOPT_PROXY and CURLOPT_PROXYTYPE:
|
||||||
|
|
|
@ -73,10 +73,10 @@
|
||||||
"country": "NZ"
|
"country": "NZ"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"clearnet": "https://librex.kitscomputer.tk/",
|
"clearnet": "https://search.milivojevic.in.rs/",
|
||||||
"tor": null,
|
"tor": null,
|
||||||
"i2p": null,
|
"i2p": null,
|
||||||
"country": "US"
|
"country": "NL"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,11 +37,21 @@
|
||||||
$url = $frontend . explode($original, $url)[1] . "?lang=" . $lang;
|
$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
|
else
|
||||||
{
|
{
|
||||||
$url = $frontend . explode($original, $url)[1];
|
$url = $frontend . explode($original, $url)[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return $url;
|
return $url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,7 +71,8 @@
|
||||||
"tiktok.com" => "proxitok",
|
"tiktok.com" => "proxitok",
|
||||||
"wikipedia.org" => "wikiless",
|
"wikipedia.org" => "wikiless",
|
||||||
"quora.com" => "quetre",
|
"quora.com" => "quetre",
|
||||||
"imdb.com" => "libremdb"
|
"imdb.com" => "libremdb",
|
||||||
|
"fandom.com" => "breezewiki"
|
||||||
);
|
);
|
||||||
|
|
||||||
foreach($frontends as $original => $frontend)
|
foreach($frontends as $original => $frontend)
|
||||||
|
|
|
@ -87,7 +87,8 @@
|
||||||
"proxitok" => array("https://github.com/pablouser1/ProxiTok/wiki/Public-instances", "TikTok"),
|
"proxitok" => array("https://github.com/pablouser1/ProxiTok/wiki/Public-instances", "TikTok"),
|
||||||
"wikiless" => array("https://codeberg.org/orenom/wikiless", "Wikipedia"),
|
"wikiless" => array("https://codeberg.org/orenom/wikiless", "Wikipedia"),
|
||||||
"quetre" => array("https://github.com/zyachel/quetre", "Quora"),
|
"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)
|
foreach($frontends as $frontend => $info)
|
||||||
|
|
Loading…
Add table
Reference in a new issue