If they're genuinely useful, maybe you don't really need to quit them so much as establish firm boundaries as to their use. Not just as a matter of time, but also space and even circumstance.
Something for instance, like "I can only browse HN on my phone, during lunch." if you can successfully establish it as a ritual, that limits your potential window to time waste. Perhaps this is not a sentence entirely directed toward you, but: There's diminishing returns to HN's utility the longer you spend time on it. Knowledge you collect but can't/won't act upon is meaningless.