Yes Byron here is the full code below.
Hernan, I think that's exactly the problem, check for example the flash ads on
http://www.eurogamer.net/they are loaded within an iframe...
...can you advise any workarounds to target those elements?
jetpack.statusBar.append({
html: '<div style="display:inline; font-size:11px; font-family:Arial;height:auto; padding:1px; text-align:center; color:#444; background:#ddd; border:1px solid #999;">Simplify<input id="chk" type="checkbox" style="display:inline; vertical-align:middle;"></div>',
onReady: function(widget){
$("#chk", widget).click(function(){
if( this.checked ){
simplify(jetpack.tabs.focused.contentDocument);
jetpack.tabs.onReady(simplify);
}
else {
jetpack.tabs.focused.contentWindow.location.reload();
jetpack.tabs.onReady.unbind(simplify);
}
});
}
});
function simplify(doc){
$(doc).find("img,object,embed,iframe").remove();
$(doc).find("*").css({"background":"#fff", "color":"#555"});
}