Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install
YouTubeImageLink
Turns embedded YouTube videos into clickable images that link to the YouTube video page.

If you are a Linux or FreeBSD user and you have problems with or don't want to use the Adobe flash plugin, you can use this script and my YouTotem script for flash free YouTube access.
Note: You may want to add to following filter to Adblock Plus:
http://*youtube.*/v/*
|
|
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
|
You could comment on this script if you were logged in.
