I am looking to replace a iframe inside a html page with grease monkey in firefox.
That is the code I have so far but instead of removing the iframe I would like to replace it with a link to what was inside the iframe, could anyone point me in the right direction? I know very little JavaScript.
Code:
// @include *domain.com*
// ==/UserScript==
var theIframe = parent.frames[0].window.document.getElementsByTagName("IFRAME").item(0);
if (theIframe) {
theIframe.style.display = "none";
}
That is the code I have so far but instead of removing the iframe I would like to replace it with a link to what was inside the iframe, could anyone point me in the right direction? I know very little JavaScript.





