Found a better way to detect new media types,
solves a bug where some media types would need
reloads to play sucessively.
Script now adds a fullscreen button which can toggle
between normal mode and fullscreen mode.