What's worked for me every time I get in that routine is to force myself to do one to five push ups every time I think about switching tabs.
During that time I think about what it is that I really want to be doing. After a while I automatically skip to this step without having the desire to refresh HN.