title: How to enable/disable manifest.json CSS content script from Chrome Extension's options page?
body: <p>Is there any way to disable/enable a <em>CSS</em> content script from a <code>browserAction</code> or <code>pageAction</code> icon? I'm talking about the kind of script that runs a CSS content script, as defined in the manifest, on a specific set of matched pages. So, if the manifest includes:</p>
  
  <pre><code>"content_scripts": [
    {
      "matches": [ "*://*.somewhere.com/*" ],
      "css": ["somewhere.css"]
    }
  ]
  </code></pre>
  
  <p>which would inject <code>somewhere.css</code> on <code>somewhere.com</code>. Is there any way to write a <code>browserAction</code> or <code>pageAction</code> options popup that could fully enable or disable the CSS content script?</p>
  
  <p>I know that I could write a JavaScript content script that listens to such an options popup and then adds/subtracts CSS rules and/or classes to the page. But I want this CSS inserted <em>before</em> the page is rendered and as far as I can tell the only way to do that is with a CSS content script.</p>
  
  <p>But, is there a way to fully enable or disable the extension—which only has a CSS content script—from the popup? I can't see a way to do this.</p>