|
Script Summary:
2.1r4: Mores Fixes. Better options, version checking, inline embedding. YouTube's URL format means you click videos blindly. This appends the title of a YouTube link to the link in the referring page. Fixed some links with referrers (see screens) |
this script has 3 topics, 22 posts |
this script has 1 review |
||||||||||||||||||||||||||
2/20/09
Various fixes here and there with broken compatibility as the YouTube layout continues to change.
6/07/08
Found out that some URLs weren't working if they were not a direct YouTube link (like a FARK 'referred' link).
So, now this script just parses the 11-digit video code from a YouTube URL and fetches that, regardless of the parameters of the originating link.
5/13/08
Thanks to inspiration from the excellent Google Anonymizer Script, I made the settings be its own window, as opposed to toggling Greasemonkey menus. You can access the 3 options from "Tools...GreaseMonkey...User Scripts Commands...YouTube Title Adder Options".
Also, online version checking has been implemented!
In the above mentioned "YouTube Title Adder Options" window, it will check this page for the latest version of the script, and present a link in the options menu should one be available! (See Screens)
I think it'll work fine, but comment if it doesn't!
(if you find this script useful, I accept TotalFark sponsorships to help waste my time. figured that was worth a shot, like this:
)


5/11/08
Please uninstall your old script, as I've changed the name to cease having that version # that's never changing.
Contains a fix for if an image link has a title already (like Fark's YouTube buttons), plus a better title adding method.
4/10/08
New Addition! Inline switchable embedding!
I got sick of wondering if a link will "pop" or not, and also just don't really enjoy loading YouTube's pages when I just want to see the video and be on my merry way... so, I added the ability to just click a small image button, placed next to the link, to show/hide the video while in the same page! It's unobtrusive, and the video will only load if you click the "show" button... so there's no page load slowdown!
If embedding is disabled for a video (like the samples on this page), you can click the icon to at least see the video thumbnail.
It can be toggled in the "User Script Commands"
See screen shots below!
3/14/08
Yet another fix... why can't layouts stay the same?
1/10/08
Updated to fix YouTube's removal of the "div" for a title, and placing it instead in the meta head. Should work again!
10/05/07
That was easy. Added the ability to toggle the titles on Text/Image links via the GreaseMonkey...User Script Commands... menu.
10/04/07
Doesn't append the innerHTML if the link is an image button (like on Fark). Test here:
This should have no text appended, but show you the video name when you mouseover: 
This should be appended as per usual: Video
What I'd like to do next is make the selections have toggles, so you can set it to append text, do the mouseovers, etc. I'll get on that for the hell of it soon.
v1.2 - 9/29/07
Thanks to all who have downloaded this; it's my fastest propagating script yet. Please spread the word! I have discovered some YouTube videos apparently use a < div > to display the video title, so I had to put in an alternate fetching should the more popular header method return nothing.
In other words, I got Rick Roll'd on a Youtube link (that should tell you what the video is, btw), and was forced to update this script.
Also, contrary to a post below, this script really does not affect page loads at all. Before I did the exclusion of Google searches and YouTube's page, it would fetch titles for every video on those pages. Everything still loaded great!
Please leave any suggestions or requests in the comments, as I really am happy with how this script turned out.
v1 - 9/9/07 - Initial release
One pet peeve on the web for me is the format of YouTube's links being so obscure that you have no clue what the hell you're clicking on half the time.
This script goes through a page, seeks out the YouTube links, grabs the YouTube video's title, and appends the title to the link in the page.
It bolds the title, italicizes the link, and modifies the title.
No you have no excuse for not knowing what you're clicking on.
Before:
After:







