YouTube comments next to videos

By Henrik N Last update Jan 20, 2007 — Installed 4,389 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 8 posts, 7 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Avindra V.G. Scriptwright

didn't check script out, but for metadata, use:

<img src="http://henrik.nyh.se/uploads/youtube-comments.jpg" />

 
Mablung Scriptwright

Replace "aboutVidDiv" with "channelVidsDiv" to get this script to work with the beta version of YouTube.

 
lazyttrick Scriptwright

Hi, I've noticed some blank 'holes' on the page, when there are no comments. In order to solve it, I've try to mess with c and c2 variables but the holes just kept switching places.

So I've just made a search for the string 'Comments: 0' and I return if the number is 0. I've added the code below to th beginning of the script, after the //'s.

var div = document.getElementById('actionsAndStatsDiv');
var text = div.textContent.match(/Comments:\s+\d+/);
if( text && text[0] && text[0].match(/\d+/)[0]=='0' ){
return;
}

 
lazyttrick Scriptwright

Freakin awesome! This inspired me to write some ideas. Thank you!

 
Greg Bartell User

I love it! I needed that. A lot. Thanks.

 
Arvid Scriptwright

Same here, really prefer the google video way.

 
mootrix User

Very nice, thats what i needed! ThanQ

-mootrix

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel