Remove black preloading screen for videos

Videos such as YouTube often take a second to load, and will sometimes show a blank/black screen during this time.
The following code can be used to eliminate this blank/black screen.