[Conkeror] Toggle style sheets

David Kettler David.Kettler at dsto.defence.gov.au
Mon Sep 29 19:40:27 PDT 2008


Some web sites have useful content but unreadably awful formatting.
The following code can help.  It seems to do the right thing, but I
don't really know what I'm doing.

interactive("toggle-stylesheets",
            "Toggle whether conkeror uses style sheets (CSS) for the " +
            "current buffer.  It is sometimes useful to turn off style " +
            "sheets when the web site makes obnoxious choices.",
            function(I) {
  var s = I.buffer.document.styleSheets;
  for (var i = 0; i < s.length; i++)
    s[i].disabled = !s[i].disabled;
});


regards, David.


IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914.  If you have received this email in error, you are requested to contact the sender and delete the email.




More information about the Conkeror mailing list