Skip to content

Instantly share code, notes, and snippets.

@remixz
Created December 7, 2012 03:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save remixz/4230527 to your computer and use it in GitHub Desktop.
Save remixz/4230527 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