Create a gist now

Instantly share code, notes, and snippets.

Embed
Move between YouTube and YouTube Gaming.
javascript:(function(){
var locHost = window.location.hostname;
var gaming = "gaming.youtube.com";
var normal = "www.youtube.com";
var except = location.pathname.indexOf("/game/");
if (except != 0) {
if (locHost == normal) {
window.location.hostname = gaming;
} else if(locHost == gaming) {
window.location.hostname = normal;
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment