dimanche 10 juillet 2016

Enable/Disable "content_scripts.css" in Chrome Extension

For example:

  ...
  "content_scripts": [
    {
      "matches": ["*://*/*"],
      "css": ["style.css"]
    }
  ]
  ...

I would like to inject this stylesheet by default. Which is business as usual.

I would also like to enable/disable, when the user when the user clicks on the icon in the toolbar.

Any pointer would be helpful. Thanks!

Aucun commentaire:

Enregistrer un commentaire