Archived Comments (locked)
|
|
The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008) |
|
|
I make a slight change to do 2 things.
Feel free to appropriate it for your official version if you like..
if(z) {
img[j] = document.createElement("div");
img[j].innerHTML =
'<strong>YouTube Video</strong><br />' +
'<a href="http://www.youtube.com/watch?v=' + z[1] +
'" target="new" title="YouTubeImageLink">' +
'<img src="http://img.youtube.com/vi/' + z[1] +
'/default.jpg" width="300" height="225"' +
'></a>';
obj[i].innerHTML = "";
ele[j++] = obj[i];
}
|
|
|
I should note that I have also found this script useful, and I would like to thank you for writing it. I referred to its code as I wrote one that is partially based on it. And this script, which adds a link to the YouTube page for the video below the embedded video, can be found here: http://userscripts.org/scripts/show/12673 |
|
|
i just remove www from your script
|