When a user clicks on the browser icon to expand, it displays a popup that has been defined.
I need to create a toggle button to enable / disable the stylesheet for a specific page / domain when the user clicks the button inside the popup.
For example, when a user uses the Adblock extension, when the user clicks the browser icon, he brings up a pop-up window with a series of links. One of these links does not start on this page, which then changes to enable, which the user can click to enable it.
Another example (a much better example): the classic pop-up blocker has a button in the pop-up window that says: "add this page to the black list" and once clicked the change "remove from the black list".
The classic pop-up blocker is usually the functionality I want for my extension (it does nothing with ads or pop-up blockers, this is just an example), so when a user clicks a button in a pop-up window, he will turn the stylesheet turned on or off, which I wrote and saved as a .css file in the extension.
Hope I made it clear enough to understand.
SCREENS
Here is the photoshop I did so that you can see exactly what I'm trying to do:

and take a picture again to find out what should happen after pressing the buttons:

user1158415
source share