Add CI
Initial commit
Unfucks links from e-mails and other trackers when you really need to open one but you use some blocking DNS and don't feel like adding an exception, switching to another DNS temporarily, etc.
You use a service such as NextDNS or Pi-Hole, which blocks entire domains at the DNS level. Trainline sends you an email telling you that your train has been cancelled, with a link to help you get a refund or to find the next train that your ticket is still valid for. You want to open the link, but because Trainline feels like they need this link to be a tracker, NextDNS or Pi-Hole blocks it, so you can't open it.
This tool takes such a link, and then uses Google's DNS servers to resolve the host. If the link then re-redirects you, it will continue following redirects until there are no more redirects.
unfucklink 'https://totally.tracking.you/but-need-to-open-it'
2022/06/05 19:23:51 final URL: https://final.location.com/some-href'