Programmatically control of injected Style Sheets

Hello!

I'm looking for solution to control the content of injected Style Sheet in my Safari Extension in same way as blocking rules.

For example i can control blocking rules dinamically like this:


safari.extension.setContentBlocker(contentBlockingRules);


There is no any documentation about style sheets control.

Right now i have standard method of style tag injection on domready and before but looking for better solution.

Any help will appreciated! Thank you!