Since Treehouse was launched earlier this week I have been watching a lot of the videos and working my way through the badges. I often have the videos playing in the background whilst I'm working and the only problem is that you have to manually move on to the next video all the time.

So I decided to build a little chrome extension to automatically play through all of the videos in a badge. The extension looks at the current video and reads the video list to determine the next video in the playlist. Once the current video has finished playing it will automatically load the new one and start the video playing. Unfortunatly it doesn't support fullscreen viewing yet but I will try and get it sorted soon.

The extension injects some javascript into the page to handle the auto play feature and also has a background page which is responsible for switching the toolbar icon between the active and inactive states. There are instructions on how to install the extension in the code repo. I will release the extension in the chrome webstore to make it easier to install if the guys at treehouse are happy for me to do so.

You can get the code on github.

https://github.com/matt-west/treehouse-autoplay

UPDATE:

You can now install the extension directly from the Chrome Web Store.

https://chrome.google.com/webstore/detail/epcbdbkjnonaliagdjccjnoejpgdnjkm?hl=en-US

Matt West