Skip to content

Instantly share code, notes, and snippets.

@DartPower
Forked from remixz/oldyoutube.user.js
Created May 28, 2019 17:33
Show Gist options
  • Save DartPower/92a46493eb43c0f0d35c6b882ddefa1b to your computer and use it in GitHub Desktop.
Save DartPower/92a46493eb43c0f0d35c6b882ddefa1b to your computer and use it in GitHub Desktop.
Old YouTube layout userscript
// ==UserScript==
// @name Old YouTube view pages
// @version 1.0
// @description Brings back centered YouTube videos and removes guide and crew.
// @include http*://www.youtube.com/watch?*
// ==/UserScript==
(function() {
document.getElementsByTagName('body')[0].className = document.getElementsByTagName('body')[0].className.replace(/(?:^|\s)site-left-aligned(?!\S)/g , '');
document.getElementById('guide-container').parentNode.removeChild(document.getElementById('guide-container'));
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment