YePpHa/YouTubeCenter — pull request #278 by m0vie (2014-01-24 03:47:11+00:00)
Title: https redirect: use location.replace(...) instead of location.href = ...

Currently, when redirecting from http to https, there will be two
entries added in the browser history.
Pressing "back" will go back to "http", and YouTubeCenter, in return,
will redirect to "https" again, effectively causing an infinite loop.

Use location.replace() instead, because that does not create another
history entry in the browser and the back button works as expected.