hidecomments

By jaek rich Last update May 4, 2008 — Installed 242 times. Daily Installs: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 2, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 1, 0, 0, 0
// ==UserScript==
// @name           hidecomments
// @namespace      hidecomments
// @description    hide those stupid text comments on load
// @include        http://*youtube.*/watch?*
// ==/UserScript==
var node = document.getElementById('watch-comment-post-comment').parentNode;
var className = 'expanded';
node.className = node.className.replace(new RegExp("(^|\\s+)" + className + "(\\s+|$)"), ' ').replace(/^\s+/, '').replace(/\s+$/, '');