Currently I'm using the following code, which works when calling insertRule
in your own Javascript, however it "breaks" the functionality of Firebug.
When you add a rule in the CSS window, it immediately removes the rule you
added leaving a blank set of {} and doesn't print to the console.
(function(original){
CSSStyleSheet.prototype.insertRule = function(rule, index){
console.log("Test");
return original.apply(this, arguments);
}
})(CSSStyleSheet.prototype.insertRule);
On Friday, December 14, 2012 10:31:29 AM UTC-6, Matthew Kremer wrote:
>
> Hello,
>
> I'm trying to develop a sort of extension, and am decided whether or not
> to extend Firebug or to write my extension in a way that will work along
> side Firebug.
>
> What I need to know is how does Firebug update CSS? Does it use the
> document.styleSheets.insertRule / deleteRule?
>
> Thanks,
> Matt
>
--
You received this message because you are subscribed to the Google
Groups "Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
https://groups.google.com/forum/#!forum/firebug