Linkify ting (exclude emails)

By JoeSimmons Last update Apr 6, 2014 — Installed 10,912 times.

Youtube videos not linking right

Subscribe to Youtube videos not linking right 2 posts, 2 voices

Eric W User

linkify youtube links are not linking correctly. They all direct to a screen that says

"The video you have requested is not available.

If you have recently uploaded this video, you may need to wait a few minutes for the video to process."

mar1 User

I noticed the same problem.
I found out, that all letters in the link get converted to lowercase letters.
Many URLS, however, are case senstive, and youtube video ids are, too.

I got it fixed by changing the line
a.setAttribute("href", href.toLowerCase());
a.setAttribute("href", href);