Hi there!

Here's my problem: a page has a link to one css;  it sets the page's
styles and all is fine. Now, before any of those styling would be
applied, I wish to override them with my own (dynamically constructed)
- otherwise, we see a flicker effect.

With my content scripts set to "before_start", I tried to inject a
style tag as the last node of the header of the current page. The
styles are properly overridden although, if the body takes long enough
to load, I can see the previous styling still applied - flicker
remains.
This tells me that some css parsing has already began before my script
could complete it's job. Thus, I tried another way: from the
background page, I wait for a tab event then trigger a tab.insertCss.
Hera again, I can see that the styling applies, although, to late.

The only solution so far is to specify a css in the extension's
manifest that's set to override everything else though: I need that
css to be dynamically applied and constructed so that "solution" is
not satisfactory.

Any hint, anyone?

--

You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to chromium-extensi...@googlegroups.com.
To unsubscribe from this group, send email to 
chromium-extensions+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en.


Reply via email to