Remove sidebar and crap from youtube

By bbqofdoom Last update Mar 2, 2011 — Installed 1,408 times.

There are 2 previous versions of this script.

// ==UserScript==
// @name           Remove sidebar and crap from youtube
// @include http://*.youtube.com/*
// ==/UserScript==

function AddStyle(Style) {
  var style = document.createElement('style');
  style.type = "text/css";
  style.innerHTML = Style;
  document.getElementsByTagName('head')[0].appendChild(style);
};
//removing ads and stuff
AddStyle ("#masthead_child_div {display:none;}");
AddStyle ("#homepage-side-content {display:none;}");
AddStyle ("#ad_creative_1 {display:none;}");
AddStyle ("#ad_creative_expand_btn_1 {display:none;}");
AddStyle ("#homepage-main-content {width: 100% !important;}");
//AddStyle ("#comments-view {display: none;}");
//AddStyle ("#comments-post {display: none;}");
AddStyle ("#watch-actions-left {display: none;}");