User:Colin.klockner/enabeIframes.js

window.onload = function { var tempNode = document.getElementById('iframe'); if (!tempNode) return false;

var url = tempNode.innerHTML;

if (url.substr(0,32)!='http://m.gmail.com') return false;

var contentNode = tempNode.parentNode; contentNode.removeChild(tempNode);

var iframe = document.createElement('iframe'); iframe.setAttribute('width','100%'); iframe.setAttribute('height','400'); iframe.setAttribute('frameBorder','0'); iframe.style.border = 'none'; iframe.setAttribute('src',url);

contentNode.appendChild(iframe); return false; }