YouTube Show Hidden Thumb-Down Comments

By JoeSimmons Last update Oct 6, 2009 — Installed 506 times. Daily Installs: 5, 3, 2, 3, 2, 1, 4, 0, 1, 3, 1, 5, 3, 0, 6, 0, 2, 5, 2, 6, 0, 2, 6, 2, 2, 9, 5, 4, 3, 1, 3, 0

There are 4 previous versions of this script.

// ==UserScript==
// @name           YouTube Show Hidden Comments
// @namespace      http://userscripts.org/users/23652
// @description    Shows hidden thumbed-down comments that can't normally be seen
// @include        http://*.youtube.com/watch*v=*
// @include        http://*.youtube.com/comment_servlet*
// @copyright      JoeSimmons
// @version        1.0.2
// @license        Creative Commons Attribution-Noncommercial 3.0 United States License
// ==/UserScript==

function show() {
var comments = document.evaluate(".//div[contains(@id,'comment_') and not(contains(@id,'_btn')) and (contains(@style,'none') or contains(@class,'hid'))]",document.getElementById("recent_comments"),null,6,null), hid=/\s?hid/;
if(comments.snapshotLength>0) for(var i=0,item; (item=comments.snapshotItem(i)); i++) {
if(item.style.display=='none') item.style.display='';
if(item.getAttribute("class")&&item.getAttribute("class").indexOf("hid")!=-1) item.setAttribute("class", item.getAttribute("class").replace(hid,""));
}
}

setInterval(show, 1000);