I need to remove all the style definitions in a page using javascript, to obtain the same result as doing View > Page Style > No Style in Firefox. Which is the simplest way?
I need to remove all the style definitions in a page using javascript, to
Share
You can recursively iterate through all elements and remove the
styleattribute:Or:
Usage:
To remove linked stylesheets you can, in addition, use the following snippet:
Or: