function removeEmbeds(doc){
$(doc).find("iframe").remove();
$(doc).find("embed").remove();
$(doc).find("img").remove();
$(doc).find("*").css("color","#555");
$(doc).find("*").css("background","#fff");
}
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 type="checkbox" style="vertical-align:middle;"></div>',
width: 70,
onReady: function(widget){
$("input", widget).click(function(){
if( this.checked ){
jetpack.tabs.onReady( removeEmbeds );
removeEmbeds(jetpack.tabs.focused.contentDocument);
}
else {
jetpack.tabs.focused.contentWindow.location.reload();
jetpack.tabs.onReady.unbind( removeEmbeds );
}
});
}
});