Last active
December 23, 2015 08:39
-
-
Save RyanMacG/6609461 to your computer and use it in GitHub Desktop.
Find storify link and build embed
This file contains 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
$('#ugc a[href*="storify.com"]').each(function(){ | |
$(this).replaceWith('<div class="storify"><iframe src='+this+'/embed width="'+video_width+'" height="750" frameborder=no allowtransparency=true</iframe><script src='+this+'.js"></script><noscript>[<a href='+this+' target="_blank">View the story on Storify</a>]</div></noscript>'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment