YouTube Show Hidden Thumb-Down Comments

By JoeSimmons Last update Dec 24, 2009 — Installed 2,128 times.

There are 5 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.3
// @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("watch-comment-panel"),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,""));
}
}

window.setInterval(show, 1000);