This is what works for me. Get up Saturday morning and go edit you hosts file and block off the 3 most common sites that you waste time on. Now, pack up your laptop and go to a coffee shop. This will eventually lead you to break the habit for short stimuli and eventually you will learn enjoy longer term projects. Leaving the house prevents you from turning on the TV or finding some other random thing to waste time on. It's all about habit forming.