From b6dbc56e6247ed75e44b757329769a948fe4ecb8 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sun, 14 Aug 2022 22:15:40 -0500 Subject: Add scribe.rip Should look at adding for other urls, a la https://scribe.rip/faq --- sfeed_html.awk | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sfeed_html.awk b/sfeed_html.awk index ad3ce71..132879e 100755 --- a/sfeed_html.awk +++ b/sfeed_html.awk @@ -65,6 +65,9 @@ BEGIN { if (! REDDIT_ALT_URL) { REDDIT_ALT_URL = envor("SFEED_REDDIT_ALT_URL", "https://libreddit.de") } + if (! MEDIUM_ALT_URL) { + MEDIUM_ALT_URL = envor("SFEED_MEDIUM_ALT_URL", "https://scribe.rip") + } # Paywalls PAYWALL_LADDER = "https://archive.ph/newest/" PAYWALLED[1] = "washingtonpost\\.com" @@ -353,6 +356,9 @@ function silo_class(link) if (link ~ /reddit\.com/) { return " reddit" } + if (link ~ /meedium\.com/) { + return "medium" + } return "" } @@ -367,6 +373,8 @@ function silo_link(link) sub(http "i\\.reddit\\.com", REDDIT_ALT_URL, ret) } else if (ret ~ (http "twitter\\.com")) { sub(http "twitter\\.com", TWITTER_ALT_URL, ret) + } else if (ret ~ (http "medium\\.com")) { + sub(http "medium\\.com", MEDIUM_ALT_URL, ret) } else { siloed = 0 for (site in PAYWALLED) { -- cgit 1.4.1-21-gabe81