I wrote an extension to deal with these sorts of addictions. One thing I noticed works incredibly well is only penalizing time spent with pages focused, so things like background music/documentaries are fine. You end up developing really intentional habits with the web and actually taking time seriously.