-
-
Save DartPower/92a46493eb43c0f0d35c6b882ddefa1b to your computer and use it in GitHub Desktop.
Old YouTube layout userscript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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