Consider something like Cold Turkey, the paid version (one-time fee) has an included scheduler if you can't trust yourself to turn it on when you'd need to. If you don't want to pay for it, the free version includes CLI operations, you can make your own scheduler script without too much trouble.
HN has an included time limiter in the options.. but nothing stops you from launching it in incognito so it's only useful as far as you have willpower.
Linux user, so no on the cold turkey. I'd just circumvent it anyway, I don't believe it could prevent me from uninstalling.
I've done the hosts file thing and other efforts. It is clear the only thing that will work is looking right at the bottle and realizing I don't want it anymore, much like the article in question suggests.
HN has an included time limiter in the options.. but nothing stops you from launching it in incognito so it's only useful as far as you have willpower.