There are already extensions which do the same. I didn't want to put too many features in the one program. I like to keep it simple :)
https://chrome.google.com/webstore/detail/floating-for-youtu...
https://chrome.google.com/webstore/detail/floating-for-youtu...