To remove all style sheets from the page you can call this from within the
Command
Editor <https://getfirebug.com/wiki/index.php/Command_Editor>:
*function* removeInlineStyles(node) {
*if* (node.hasAttribute("style"))
node.removeAttribute("style");
*for* (*var* i = 0; i < node.children.length; i++)
removeInlineStyles(node.children[i]);
}
*var* styleSheets = document.querySelectorAll("style, link[type='text/css']"
);
*for* (*var* i = styleSheets.length - 1; i >= 0; i--)
styleSheets[i].parentNode.removeChild(styleSheets[i]);
removeInlineStyles(document.documentElement);
Then you can copy the HTML by right-clicking the <html> element within the
*HTML* panel <https://getfirebug.com/wiki/index.php/HTML_Panel> and
choosing *Copy HTML*.
I added a more detailed description at stackoverflow.
Sebastian
On Saturday, April 12, 2014 9:49:32 AM UTC+2, eumgene wrote:
>
> Hello,
>
> I asked this on stackoverflow today but suspect that this may be the best
> place to get an answer. Here is the question:
>
> Some webpages get "better" when "No Style" is chosen in Firefox, View>Page
> Style>No Style: e.g. the text quickly reflows. I need to save webpages
> precisely the way they are rendered with the "no style" view is that
> possible? Can one copy the Firefox-transformed html code behind the "no
> style" view?
>
> If that was possible at all, it would be with Firebug I suppose (altough
> I am a complete newbie)...
>
--
You received this message because you are subscribed to the Google Groups
"Firebug" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/firebug.
To view this discussion on the web visit
https://groups.google.com/d/msgid/firebug/bfa4f6f3-a1fa-42e9-aefd-d07d7dd0fef2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.