javascript - How do I unset CSS values? -
i have written firefox extension alters , feel of facebook. used js code inject css styles override fb defined values. url patterns don't want force styles. issue here fb doesn't seem load full page parts of page (but somehow url in address changes).
this means when new page loads old styles still remain applied , want restore them original values. how should that?
you should inject custom css styles 1 <style>
element, , remove <style>
element (using javascript) when new page loaded on don't want custom css.
here's example using jquery: http://jsfiddle.net/thirtydot/bapzf/
Comments
Post a Comment