From fcd56802ea69cdea2999edcdff2c7af3ecb02106 Mon Sep 17 00:00:00 2001 From: Saksham Shekher <95137948+OshekharO@users.noreply.github.com> Date: Fri, 13 Jan 2023 16:56:01 +0530 Subject: [PATCH] Sry --- misc/tools.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/misc/tools.php b/misc/tools.php index 25679b8..f89b210 100644 --- a/misc/tools.php +++ b/misc/tools.php @@ -19,6 +19,12 @@ else if (!empty($config->$frontend)) $frontend = $config->$frontend; + if ($original == "instagram.com") + { + if (!strpos($url, "/p/")) + $frontend .= "/u"; + } + if (empty(trim($frontend))) return $url; @@ -59,6 +65,7 @@ $frontends = array( "youtube.com" => "invidious", + "instagram.com" => "bibliogram", "music.youtube.com" => "hyperpipe", "imgur.io" => "rimgo", "medium.com" => "scribe",