Posting YouTube links in IRC

dh2k3

TrainzDiag troubleshooter
To post youtube links in IRC do the following:

1) Find the video you want to link to ex: http://www.youtube.com/watch?v=MoKp0sgqbKY

2) Click on View>Page Source

3) Find the line that begins with
Code:
var embedCode = '<object width="425" height="' + height + '"><param name="movie" value="http://www.youtube.com/v/MoKp0sgqbKY' + query + '"><\/param><param name="wmode" value="transparent"><\/param><embed src="http://www.youtube.com/v/MoKp0sgqbKY' + query +'" type="application/x-shockwave-flash" wmode="transparent" width="425" height="' + height + '"><\/embed><\/object>';
document.embedForm.embed_code.value = embedCode;
See where it says value= http://www.youtube.com/v/MoKp0sgqbKY. Copy and paste it (without the value= so it's just the web address). What this does is it shows the video without the comments.

Dave
 
Last edited:
Hi

I've been looking all over the page source but I couldn't find it.so I couldn't find a way to find what you told me to look for.

I tried the find function by copying the whole code and pasting it into the find function but it couldn't find it.
 
Hi

I've been looking all over the page source but I couldn't find it.so I couldn't find a way to find what you told me to look for.

I tried the find function by copying the whole code and pasting it into the find function but it couldn't find it.

It's there ex: http://www.youtube.com/watch?v=RehPDgd-djs right-click on the webpage itself (not the video) and view the source. You'll need to search for www.youtube.com/v/ and you should find that on the 2nd instance of the search. you'll see http://www.youtube.com/v/RehPDgd-djs and that's what you copy & paste for commentless videos
 
Back
Top