Klaus Schilling <schilling.kl...@web.de> wrote:
> hi,
> is there a way to disable all stylesheets of a loaded document with some vimb 
> command,
> possbly evaluating some suitable javascript statement?

What's the use case for this? There are multiple stylesheets applied to the
page, those that are compiled in webkit self, stylesheets of the designer
loaded into the page, inline styles and you personal stylesheet.

If there where a way to disable all of them, the page should look like a XML
document opened with a browser, a lot of text without any structure with some
images or tables in between.

If you only intend to see what webkit would produce if the pages author have
forgotten the css, you could damage the page with something like this (you can
write this into the inputbox of vimb on runtime).

    :e 
s=document.querySelectorAll('link[rel=stylesheet],style');for(i=0;i<s.length;i++)s[i].parentNode.removeChild(s[i])

But this does not touch any inline styles but you can play around with
something similar to do this.

Daniel

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
vimb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vimb-users

Reply via email to