I did the same thing for years, mindlessly browsing well past a sane hour. What changed is I started going to bed early and getting up early, before the sun rises. I still browse mindlessly on occasion, but my after-coffee morning browsing is a lot more directed than my drowsy evening browsing.