plumb.sh: handle ytdl:// and switch nitter instance - randomcrap - random crap programs of varying quality
(HTM) git clone git://git.codemadness.org/randomcrap
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit c587f2e70fc676ae7b08da24c854d15cb78fd559
(DIR) parent 7d5aa3a1548c738e84caf1c51e0ed5cf96202c69
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Wed, 12 Mar 2025 19:28:10 +0100
plumb.sh: handle ytdl:// and switch nitter instance
Diffstat:
M config/scripts/plumb.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/config/scripts/plumb.sh b/config/scripts/plumb.sh
@@ -130,6 +130,7 @@ if match "$text" '^(gopher|gophers)://'; then
image "$out"
fi
elif match "$text" '^(ytdl)://'; then
+ text="https://www.youtube.com/embed/${text}"
movie "$text"
elif match "$text" '^(lbry)://'; then
text=$("$HOME/.config/scripts/plumb/lbry.sh" "$text")
@@ -202,7 +203,7 @@ elif match "$text" '^(http|https)://.*(\.?twitter\.com)/'; then
url="${url#twitter.com}"
url="${url#/}"
# replace with nitter instance.
- url="https://nitter.net/${url}"
+ url="https://nitter.privacydev.net/${url}"
www "$url"
# old twitter status script