NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name YouTube minimizer // @namespace redbeard.436@gmail.com // @version 1.4 // @description Removes related and comments sections // @author red436 // @copyright 3-23-2020 // @license MIT; https://opensource.org/licenses/MIT // @match https://www.youtube.com/watch?* // @grant none // @icon https://s.ytimg.com/yts/img/favicon-vfldLzJxy.ico // ==/UserScript== window.addEventListener("load", function() { var comments = document.getElementById('comments'); var secondary = document.getElementById('secondary'); comments.style.visibility = "hidden"; secondary.style.visiblity = "hidden"; comments.parentNode.removeChild(comments); secondary.parentNode.removeChild(secondary); document.getElementById('primary-inner').style.margin = "auto"; });