I have found this api http://code.google.com/chrome/extensions/tabs.html#method-insertCSS ,but this is api insert css file when the html file is loaded, and the whole page redraw cause the new css rule hide some areas of this page.Is there any idea for me to insert the css file before page rendering? I know the manifest.json can solve this problem ,but this solution is static, I can't change the style by programming.
All I want is that I can dynamic assign css rules(css file or css code fragment ) to some page that match my condition and doesn't blink the page. Manifest.json rules are static, and these rules do apply before DOM rendering(by using run_at option, I can gain fine grit control ).