Post by Eton Bones on Feb 12, 2008 3:16:47 GMT -5
[bg=mistyrose] |
Video Type:Yahoo
UBBC:[video=Yahoo]5963977.1806710[/video]
How to insert video:
Use the following bookmarklet (copy and paste in browser addressbar) to get the correct video ID for any video currently playing on yahoo's website:javascript:var p='Copy this video ID and surround it with the Yahoo video UBBC tag';if(/video\.yahoo\.com\/video\/play\?vid=\d+/i.test(location.href)){var y_vid=prompt( p, y_up_eAutoStart + '.'+ location.href.match(/vid=(\d+)/)[1])}else if(location.href.match(/video\.yahoo\.com\/watch\/(\d+)\/(\d+)/i)){var y_vid=prompt( p,RegExp.$2+'.'+RegExp.$1)}
note: make sure you're viewing a single video and not a playlist when you use the boomarklet (i.e. the url should have the word "watch" or "play" in it).
Update:
- mar 24, 2008 - Yahoo has revamped their website so the bookmarklet given above although it still works is no longer needed. All the needed information to uniquely identify the video can now be found in the url itself.
[video=Yahoo]http://video.yahoo.com/watch/418606/2409780
[/li][li]Jul 4, 2008 - updated the yahoo addon to keep up with changes made by Yahoo. Recopy the addon if installed prior to 7/4/2008
[/li][/ul]
Addon Code:
<script>
/* AVIP Addon:Yahoo (global header below AVIP header code) - Eton Bones*/
if(window['vidType']){
vidType['Yahoo']={};
vidType['Yahoo'].prefix='http://d.yimg.com/static.video.yahoo.com/yep/YV_YEP.swf?ver=2.0.45&id=%gid%&vid=%video%&lang=en-US&intl =us&thumbUrl=';
vidType['Yahoo'].params={flashvars:_getFlashVars};
vidType['Yahoo'].example='http://etonbones.proboards100.com/index.cgi?board=examples&action=display&thread=20';
vidType['Yahoo'].preprocess=function(vType,vURI){
if(vURI.match(/video\.yahoo\.com\/watch\/(\d+)\/(\d+)/i))
caller[caller.length-1].arguments[2]=vURI=RegExp.$2+ '.'+ RegExp.$1;
if(/^\d+\.\d+$/.test(vURI)){
prefix=prefix.replace(/%gid%/g,vURI.split('.')[0]).replace(/%video%/g,vURI.split('.')[1]);
caller[caller.length-1].arguments[2]=caller[caller.length-1].arguments[2].split('.')[1];
}
}
}
</script>
[Agent:2]