If you want to loop a YouTube video over and over again simply right-click on the video and click on Loop.

If you are using Chrome, you can press and hold the SHIFT key and then right-click on the video. While still holding down the SHIFT key, right-click again. This time you should get another menu that looks a bit different, but has a loop option too.