K-Meleon
KMeleonWiki > Resources > MacroLibrary > MacroLibrary2 > Disable Style
Submitted by: Trenton - http://geocities.com/boogomatic/
Notes:
Test it on pages like http://www.csszengarden.com ..or even my page of examples http://www.geocities.com/boogomatic/my_km.html
You can really destroy some pages with this macro.
#-------- Disable Style Sheets Macro --------
Disable_Style {
menu="Disable Style Sheets";
$JSdoit = "(function(){var i,x;for(i=0;x=document.styleSheets[i];++i)x.disabled=true;})();";
&hndlDoc;
}
Enable_Style {
menu="Enable Style Sheets";
$JSdoit = "(function(){var i,x;for(i=0;x=document.styleSheets[i];++i)x.disabled=false;})();";
&hndlDoc;
}
#--------end
#-------- Place this in your menu.cfg file where you chose.
#-------- Within the View section is best
macros(Disable_Style)
macros(Enable_Style)