Here's a script to make browsing the internet suck less. Copy a link and run via a keybinding. What other frontends should I add to it?
Captcha: DDNTYA (didn't I what?)
#!/bin/sh
if [ "$1" ]; then
url="$1"
else
url=$(xclip -o -selection clipboard || wl-paste)
fi
BROWSER=${BROWSER:-xdg-open}
case "$url" in
*fandom*)
$BROWSER "$(echo "$url" | sed 's/fandom/breezewiki/')" ;;
*reddit*|*redd.it*)
$BROWSER "$(echo "$url" | awk 'BEGIN {OFS=FS="/"} {$3="redlib.perennialte.ch"; print}')" ;;
*twitter*|*x.com*)
$BROWSER "$(echo "$url" | awk 'BEGIN {OFS=FS="/"} {$3="nitter.poast.org"; print}')" ;;
*youtu*)
$BROWSER "$(echo "$url" | awk 'BEGIN {OFS=FS="/"} {$3="yewtu.be"; print}')" ;;
*poast*media*|*xcancel*media*)
# full sized image
$BROWSER "$(echo "$url" | sed 's/%3F.*webp//')" ;;
esac