Skip to content

Instantly share code, notes, and snippets.

@rs
Created April 20, 2010 12:54
Show Gist options
  • Save rs/372387 to your computer and use it in GitHub Desktop.
Save rs/372387 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
(function(){m=navigator.mimeTypes;t="application/x-shockwave-flash";n="EMBED";d=document;if(m&&!m[t]&&d.addEventListener){d.addEventListener("DOMContentLoaded",function(){l=d.getElementsByTagName("*");for(i=0;i<l.length;i++){e=l[i];if(e.nodeName==n&&e.type==t){f=d.createElement(n);f.src=e.src+"&format=html";s=f.style;s.width=e.width;s.height=e.height;p=e.parentNode;p.insertBefore(f,e);p.removeChild(e)}}},false);}})()
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment