Skip to content

Instantly share code, notes, and snippets.

@sekimura
Created May 2, 2009 04:16
Show Gist options
  • Save sekimura/105402 to your computer and use it in GitHub Desktop.
Save sekimura/105402 to your computer and use it in GitHub Desktop.
--- 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+'&amp;server=vimeo..com&amp;show_title=1&show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id='+clip_id+'&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;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