Ideally, you find other short tasks that you needed to get done but in practice I keep a New Yorker or a book by my desk.
Less likely to only come to my senses half an hour and 8 tabs later ;).
Less likely to only come to my senses half an hour and 8 tabs later ;).