title: How to dynamically modify the manifest file css file for Chrome Extension, or what is the correct way to toggle a stylesheet on/off?
body: <p>Branching off my <a href="https://stackoverflow.com/questions/9646999/for-a-google-chrome-extension-how-do-i-define-a-stylesheet-toggle-within-the-po">Other Question</a>, a user successfully got me to serve a stylesheet but that is the wrong way; it is not what I needed to do.</p>
  
  <p>So I have come up with a more accurate question:</p>
  
  <p>Basically, you can make an extension permanently modify a web page by defining a content script in manifest.json.</p>
  
  <p>I need the ability to, on the click of a button within popup.html, toggle a stylesheet on or off.</p>
  
  <p>The answer to my other question I linked to, only allows my to serve a stylesheet, but that is removed again as soon as the page is reloaded.</p>
  
  <p>I want to basically set the option for the extension to permenantly turn on a stylesheet for a web page, or to turn it off, by clicking the toggle button located in the browser icon popup.html.</p>
  
  <p>See the screenshot:</p>
  
  <p><img src="https://i.stack.imgur.com/1pBGg.jpg" alt="popup screenshot"></p>
  
  <hr>
  
  <hr>
  
  <p>I think what I need is for the button to <strong>change a setting in the extension</strong> which will either turn on or turn off a css <strong>stylesheet content script</strong>, or <strong>swap with a different css stylesheet content script</strong>.</p>
  
  <p>I hope I have made this clear enough to understand.</p>