I wrote an 'unshit' script for mainline #dillo (compile it,
most #GNU Linux or #BSD distros won't have the stable version with dilloc)
which replaces crappy #Javascript domains with good
replacements from https://farside.link.
As a con, it's written
in 'rc' shell, so you need to install it, but you can install it
on most distros. Here it comes:
#_cat /home/anthk/bin/unshit
switch($1) {
case (~ $1 http*x.com* )
dilloc open `{ echo $1 | sed 's,x.com,nitter.tiekoetter.com,g' }
case (~ $1 http*medium.com* )
dilloc open `{ echo $1 | sed 's,medium.com,https://scribe.r4fo.com,g' }
case (~ $1 http*youtube.com* )
dilloc open `{ echo $1 | sed 's,youtube.com,https://invidious.nerdvpn.de,g' }
case (~ $1 http*imgur.com* )
dilloc open `{ echo $1 | sed 's,imgur.com,https://imgur.artemislena.eu,g' }
case (~ $1 http*github.com* }
dilloc open `{ echo $1 | sed ',github.com,https://gothub.r4fo.com' }
}
chmod +x it.
At ~/.dillo/dillorc, set these two lines:
link_action="Unshit: unshit $url"
page_action="Unshit: unshit $url"
Now you can decrapify X, YT and Medium.com links.
More at https://farside.link
The syntax it's self-explanatory to replace URL's (and match it).