On a forum that I'm a member of we have a large number of threads which end up having a lot of Youtube videos embedded on, and quite a lot of people find this quite annoying when scrolling down the page. So, I would like to use Greasemonkey to wrap a spoiler each one so each video can be opened and viewed separately.
Here is code that's used for one video as an example;
<iframe src="http://www.youtube.com/embed/_IATqru7Sh8?wmode=opaque" allowfullscreen="" frameborder="0" height="300" width="500"></iframe>
And I'd like to wrap some code around it so that every video is contained in a Javascript spoiler that has a button to be clicked to show the video.
I've managed to replace simple text with Greasemonkey but this one is a bit complicated for me. Can anyone help me with this please? Thanks!