Youtube can be a dangerous trigger for me too. I find that I can quickly go into zombie mode during which I experience cravings. You can very easily find yourself in relapse territory. Have you tried using web applications like Stayfoucused? You can put a timer on certain websites which may help you limit your online consumption.