In response to my Other question, the user successfully made me serve as a stylesheet, but this is the wrong way; this is not what i needed to do.
So, I had a more precise question:
Basically, you can make the extension permanently modify the web page by specifying the script content in manifest.json.
I need the ability, by clicking a button in popup.html, to enable or disable the stylesheet.
The answer to my other question I'm connected to only allows me to serve the stylesheet, but it is deleted again as soon as the page reloads.
I want to basically set the extension option to change the stylesheet for the web page or disable it by clicking the switch button located in the browser icon popup.html.
See screenshot:

I think I need the button to change the setting in the extension , which will either enable or disable the css contents of the script stylesheet , or swap with other contents of the CSS script table .
Hope I made it clear enough to understand.
user1158415
source share