I have started saying aloud “Someone on the internet is saying something I disagree with, and it’s making me upset”. I say this whenever I notice it happening. It immediately makes me realize how silly it is for this to take up my time, and frees me to let go and move on.