I need to append &wmode=transparent to all of my youtube iframe embeds on my blog using javascript.
So...
<iframe src="http://www.youtube.com/embed/7jW_0IQWOQg?rel=0"></frame>
Needs to be changed to:
<iframe src="http://www.youtube.com/embed/7jW_0IQWOQg?rel=0&wmode=transparent"></frame>
So I guess I need to match a youtube embed url, then append it to the end of the url... How can I match the end of the url?
Edit:
I'm using nodejs so there is no DOM.
I'm trying to check though the entire content of a single post from a blog. So the string will contain text/image html and possibly multiple youtube embeds.