commit 664343fac8cc67929717badae22942e6c2dfe63c
parent 8de7a76b540e4232c311a177bdc207f1067a5c18
Author: parazyd <parazyd@dyne.org>
Date: Wed, 3 Feb 2021 22:30:28 +0100
Plumb www.reddit to old.reddit.
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/plumber b/plumber
@@ -43,6 +43,10 @@ gopher://*|gophers://)
http://*|https://*)
case "$clip" in
+ *www.reddit.com*)
+ l="$(printf "%s" "$clip" | sed 's/www.reddit/old.reddit/')"
+ ff -new-tab "$l" &
+ ;;
*.jpg|*.jpeg|*.JPG|*.JPEG|*.png|*.PNG|\
*twimg.com*|*scontent*.fbcdn.net/*)
hurl "$clip" | feh - &