Blogging

Comedy Central Video Embedding Solution

The following is a public service for the blogotubing community. So you may have noticed that I've been a little unhappy with Comedy Central's video embed code. It -- how you say? -- blows.

• It probably has more source code than my entire blog.

• The source code shows up in the entry excerpts as text (as opposed to, say, YouTube's code which is always hidden).

• And there's a lot of miscellaneous crap above and below the video itself.

But today, I figured out how to break it down. If you have a blog of your own and you routinely post Comedy Central clips from The Daily Show and The Colbert Report, you might want to bookmark this procedure.

1. When you paste the code into your blog entry field, delete everything from: <style type='text/css' through </a></div></div>. That last part appears just prior to the <embed style tag. Do not delete <embed style.

2. Skip down to the tag: bgcolor='#000000'></embed>. Just after that tag, delete everything else from <div class='cc_links' on down.

3. You should be left with code that looks something like this:

<embed style='float:left; clear:left;' src='http://media.mtvnservices.com/mgid:cms:item:comedycentral.com:
220573' width='360' height='301' type='application/x-shockwave-flash' wmode='window' allowFullscreen='true' flashvars='autoPlay=false' allowscriptaccess='always' allownetworking='all' bgcolor='#000000'></embed>

4. Last step. This is pretty important. Delete: style='float:left; clear:left;'. You should be left with a clean video embed without all of that additional happy crappy.

5. Enjoy.