From ac7b690b32ea00fa11b83178ca8c589605110001 Mon Sep 17 00:00:00 2001 From: hnhx Date: Mon, 5 Dec 2022 13:09:39 +0100 Subject: [PATCH] made the settings more dynamic --- settings.php | 77 +++++++++++++++------------------------------------- 1 file changed, 22 insertions(+), 55 deletions(-) diff --git a/settings.php b/settings.php index c3f57e3..05f0a2e 100644 --- a/settings.php +++ b/settings.php @@ -77,62 +77,29 @@

Privacy friendly frontends

For an example if you want to view YouTube without getting spied on, click on "Invidious", find the instance that is most suitable for you then paste it in (correct format: https://example.com)

+ - Invidious - invidious\""; ?> - > -
- -
- Bibliogram - bibliogram\""; ?> - > -
- -
- Nitter - nitter\""; ?> - > -
- -
- Libreddit - libreddit\""; ?> - > -
- -
- ProxiTok - proxitok\""; ?> - > -
- -
- Wikiless - wikiless\""; ?> - > -
- -
- Quetre - quetre\""; ?> - > -
- -
- Libremdb - libremdb\""; ?> - > -
+ $frontends = array( + "invidious" => array("https://docs.invidious.io/instances/", "YouTube"), + "bibliogram" => array("https://git.sr.ht/~cadence/bibliogram-docs/tree/master/docs/Instances.md", "Instagram"), + "nitter" => array("https://github.com/zedeus/nitter/wiki/Instances", "Twitter"), + "libreddit" => array("https://github.com/spikecodes/libreddit", "Reddit"), + "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") + ); + + foreach($frontends as $frontend => $info) + { + echo "
"; + echo "" . ucfirst($frontend) . ""; + echo ""; + echo "
"; + } + ?>