I tested the new code.
First, the new code seems to work the same as the old code with external JS enabled. With external JS disabled, the new code seems to work just fine. Mission accomplished with respect to updating the code!
Some comments:
The current new macro code disables style sheets but does not disable page colors or fonts.
With Firefox I use an extension called
Read Easily. I do not want to compare apples and oranges, but I want to note something different between the two approaches. The FF extension not only disables the style sheet, but also disables background colors and fonts too.
I tested Opera, but Opera is more configurable in this respect. With Opera users can configure more precisely what "user mode" entails. Yet, with one check box, in Opera I can configure "user mode" (or non style sheet mode) to exclude page colors and fonts. I can configure Opera to show only the text elements and images and no styles or colors. This is the same as the FF extension.
Disabling colors and fonts might not seem to be within the functional intent of the K-M macro code, but I believe this is the correct approach. That is, when "disabling styles" the user usually wants to disable all layout and structural elements of the page. Can this feature be added to the new macro code?
Lastly, how do I add a toolbar button to serve as a toggle for this macro code? I easily added menu options, but from a user interface perspective, a toggle button is more useful and appropriate, much like the way Opera does this and the FF extension mentioned. I can add a keyboard hotkey, but the button should still be there. To be more specific, I do not want two buttons, one for enabling and one for disabling, but a toggle button, functioning much the same as those provided in the Privacy bar. Is this possible?