YouTubeImageLink

By raaf Last update Sep 11, 2007 — Installed 731 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 4 posts, 4 voices



Jesse Andrews Admin

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

 
Solomon Taibi User

I make a slight change to do 2 things.
1) Open link as "new"
2) Add title to link to make its nature apparent.

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];
	}

 
Jake Kasprzak Scriptwright

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

 
moryabdi Scriptwright

i just remove www from your script
thanks for this usfule script
edited script is here
http://userscripts.org/scripts/show/12213
with your name and link to this page... ;)
thanks again...

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