Created
May 2, 2009 04:16
-
-
Save sekimura/105402 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- troys_twitter_script.user.js.orig 2009-05-01 21:15:31.000000000 -0700 | |
+++ troys_twitter_script.user.js 2009-05-01 21:13:55.000000000 -0700 | |
@@ -1306,6 +1306,12 @@ | |
} | |
}); | |
} | |
+ else if( url.match(/vimeo\.com\/(\d+)/) && tnt_twitter.can('video_embed') ) | |
+ { | |
+ var clip_id = url.match(/vimeo\.com\/(\d+)/)[1]; | |
+ var embed_html = '<object width="400" height="225"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id='+clip_id+'&server=vimeo..com&show_title=1&show_byline=1&show_portrait=0&color=00ADEF&fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id='+clip_id+'&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=00ADEF&fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="allywas" width="400" height="255"></embed></object>' | |
+ $t.replaceWith(embed_html); | |
+ } | |
$t.addClass('expanded'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment