K-Meleon

KMeleonWiki > Resources > MacroLibrary > 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.


In Macros:

# Disable Style Sheets Macro 
Disable_Style? {
menu="Disable Style Sheets";
$JSdoit = "(function(){var i,x;for(i=0;x=document.styleSheetsi;++i)x.disabled=true;})();";
&hndlDoc;
}
Enable_Style? {
menu="Enable Style Sheets";
$JSdoit = "(function(){var i,x;for(i=0;x=document.styleSheetsi;++i)x.disabled=false;})();";
&hndlDoc;
}
#end


In Menus:

# Place this in your menu.cfg file where you chose.
# Within the View section is best

        macros(Disable_Style?)
        macros(Enable_Style?)


Comments & Questions

K-Meleon

(c) 2000-2010 kmeleonbrowser.org. All rights reserved.
design by splif.