Recently, I've been exploring different ways to use JavaScript to globally adjust styles. My goal is to modify the CSS rule that controls the element's style, similar to how you can do it using the Inspector in Webkit. However, after visiting https://developer.mozilla.org/en/DOM/CSSStyleRule, I am now unsure if this approach is even feasible:
style
Returns the
CSSStyleDeclaration
object for the rule. Read only.
So, does this mean that it's impossible to modify higher-level styles using JavaScript?