From 54cc790bdb3e3f2757f37c74c28ce634fa445752 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Sun, 26 Feb 2023 07:39:08 +0800 Subject: [PATCH] Remove Instagram -> Bibliogram replacement as it's discontinued (#772) Close #761 Reference: https://cadence.moe/blog/2022-09-01-discontinuing-bibliogram --- nitter.example.conf | 1 - src/formatters.nim | 4 ---- src/prefs_impl.nim | 4 ---- 3 files changed, 9 deletions(-) diff --git a/nitter.example.conf b/nitter.example.conf index cc7551a..a7abea8 100644 --- a/nitter.example.conf +++ b/nitter.example.conf @@ -39,7 +39,6 @@ theme = "Nitter" replaceTwitter = "nitter.net" replaceYouTube = "piped.video" replaceReddit = "teddit.net" -replaceInstagram = "" proxyVideos = true hlsPlayback = false infiniteScroll = false diff --git a/src/formatters.nim b/src/formatters.nim index 87ff647..3630917 100644 --- a/src/formatters.nim +++ b/src/formatters.nim @@ -13,7 +13,6 @@ let twLinkRegex = re"""twitter\.com(\S+)""" ytRegex = re(r"([A-z.]+\.)?youtu(be\.com|\.be)", {reStudy, reIgnoreCase}) - igRegex = re"(www\.)?instagram\.com" rdRegex = re"(? 0 and "instagram.com" in result: - result = result.replace(igRegex, prefs.replaceInstagram) - if absolute.len > 0 and "href" in result: result = result.replace("href=\"/", &"href=\"{absolute}/") diff --git a/src/prefs_impl.nim b/src/prefs_impl.nim index 0223c82..87de88d 100644 --- a/src/prefs_impl.nim +++ b/src/prefs_impl.nim @@ -107,10 +107,6 @@ genPrefs: "Reddit -> Teddit/Libreddit" placeholder: "Teddit hostname" - replaceInstagram(input, ""): - "Instagram -> Bibliogram" - placeholder: "Bibliogram hostname" - iterator allPrefs*(): Pref = for k, v in prefList: for pref in v: