HockeyStreams Auto Window (PiP)

This is the source for the now deprecated HockeyStream picture in picture script I made. Below is a screenshot of the settings and more or less how it worked. This could be changed for multiple youtube live streams.